pub enum DirectoryCommitError<E> {
InvalidPaths,
Conflict,
Missing,
Prepare(E),
BeforePublication(Error),
AfterPublication(Error),
}Expand description
Failure to publish or recover one existing directory tree.
Variants§
InvalidPaths
Paths were equal, nameless or not direct siblings.
Conflict
Both staging and canonical entries exist.
Missing
Neither staging nor canonical entry exists.
Prepare(E)
Caller verification or tree synchronization rejected the selected tree.
BeforePublication(Error)
Filesystem admission or a hook failed before publication.
AfterPublication(Error)
A canonical name may be visible, but its parent sync or final hook failed.
Trait Implementations§
Source§impl<E: Debug> Debug for DirectoryCommitError<E>
impl<E: Debug> Debug for DirectoryCommitError<E>
Source§impl<E> Display for DirectoryCommitError<E>where
E: Display,
impl<E> Display for DirectoryCommitError<E>where
E: Display,
Source§impl<E> Error for DirectoryCommitError<E>
impl<E> Error for DirectoryCommitError<E>
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()
Auto Trait Implementations§
impl<E> !RefUnwindSafe for DirectoryCommitError<E>
impl<E> !UnwindSafe for DirectoryCommitError<E>
impl<E> Freeze for DirectoryCommitError<E>where
E: Freeze,
impl<E> Send for DirectoryCommitError<E>where
E: Send,
impl<E> Sync for DirectoryCommitError<E>where
E: Sync,
impl<E> Unpin for DirectoryCommitError<E>where
E: Unpin,
impl<E> UnsafeUnpin for DirectoryCommitError<E>where
E: UnsafeUnpin,
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