#[non_exhaustive]pub enum FrenError {
Io {
path: PathBuf,
source: Error,
},
TargetExists(PathBuf),
WithinBatchCollision {
a: PathBuf,
b: PathBuf,
target: PathBuf,
},
InvalidInput(String),
NotYetImplemented(String),
}Expand description
Top-level error for the fren library.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io
I/O error from the filesystem layer.
TargetExists(PathBuf)
A rename target already exists (conflict policy = abort).
WithinBatchCollision
Two plans within the same batch want to rename to the same target.
Fields
InvalidInput(String)
A user-facing input was invalid (bad path, bad option value).
NotYetImplemented(String)
A feature is reserved for a future release.
Trait Implementations§
Source§impl Error for FrenError
impl Error for FrenError
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 Freeze for FrenError
impl !RefUnwindSafe for FrenError
impl Send for FrenError
impl Sync for FrenError
impl Unpin for FrenError
impl UnsafeUnpin for FrenError
impl !UnwindSafe for FrenError
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