pub(crate) enum EditError {
Duplicate(RepositoryPath),
SnapshotMismatch(RepositoryPath),
Path(PathError),
Files(FilesError),
}Expand description
Two planned edits conflict or the file transaction failed.
Variants§
Duplicate(RepositoryPath)
Two contributions disagree about one path.
SnapshotMismatch(RepositoryPath)
A path was planned from other bytes than another contribution saw.
Path(PathError)
A planned path is a symlink or lies outside the repository.
Files(FilesError)
The file transaction refused or failed.
Trait Implementations§
Source§impl Error for EditError
impl Error for EditError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<EditError> for CargoError
impl From<EditError> for CargoError
Source§impl From<EditError> for HolderError
impl From<EditError> for HolderError
Source§impl From<EditError> for ProposalError
impl From<EditError> for ProposalError
Source§impl From<FilesError> for EditError
impl From<FilesError> for EditError
Source§fn from(source: FilesError) -> Self
fn from(source: FilesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EditError
impl !UnwindSafe for EditError
impl Freeze for EditError
impl Send for EditError
impl Sync for EditError
impl Unpin for EditError
impl UnsafeUnpin for EditError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more