pub enum RenameError<Io: Error = Infallible> {
NotFound,
AlreadyExists,
Io(Io),
}Expand description
An error triggered while renaming an entry.
Variants§
NotFound
The source entry was not found.
AlreadyExists
An entry with the destination path was already present.
Io(Io)
An IO error occurred.
Trait Implementations§
Source§impl<Io> Display for RenameError<Io>
impl<Io> Display for RenameError<Io>
Source§impl<Io> Error for RenameError<Io>
impl<Io> Error for RenameError<Io>
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<Io: Error> From<Io> for RenameError<Io>
impl<Io: Error> From<Io> for RenameError<Io>
Auto Trait Implementations§
impl<Io> Freeze for RenameError<Io>where
Io: Freeze,
impl<Io> RefUnwindSafe for RenameError<Io>where
Io: RefUnwindSafe,
impl<Io> Send for RenameError<Io>where
Io: Send,
impl<Io> Sync for RenameError<Io>where
Io: Sync,
impl<Io> Unpin for RenameError<Io>where
Io: Unpin,
impl<Io> UnwindSafe for RenameError<Io>where
Io: UnwindSafe,
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