pub enum FsError {
NotImplemented,
GeneralFailure,
Exists,
NotFound,
Forbidden,
InsufficientStorage,
LoopDetected,
PathTooLong,
TooLarge,
IsRemote,
}
Expand description
Errors generated by a filesystem implementation.
These are more result-codes than errors, really.
Variants§
NotImplemented
Operation not implemented (501)
GeneralFailure
Something went wrong (500)
Exists
tried to create something, but it existed (405 / 412) (yes, 405. RFC4918 says so)
NotFound
File / Directory not found (404)
Forbidden
Not allowed (403)
InsufficientStorage
Out of space (507)
LoopDetected
Symbolic link loop detected (ELOOP) (508)
PathTooLong
The path is too long (ENAMETOOLONG) (414)
TooLarge
The file being PUT is too large (413)
IsRemote
Trying to MOVE over a mount boundary (EXDEV) (502)
Trait Implementations§
Source§impl Error for FsError
impl Error for FsError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
impl Copy for FsError
impl StructuralPartialEq for FsError
Auto Trait Implementations§
impl Freeze for FsError
impl RefUnwindSafe for FsError
impl Send for FsError
impl Sync for FsError
impl Unpin for FsError
impl UnwindSafe for FsError
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