pub enum FsError {
BufTooSmall(usize),
WriteErr {
status: Status,
bytes: usize,
},
OpenErr(Status),
ReadErr(Status),
DeleteErr(Status),
FlushErr(Status),
SeekErr,
VolumeLabelErr,
}
Expand description
An error that may result from performing filesystem operations
Variants§
BufTooSmall(usize)
The provided buffer was too small.
WriteErr
The content could not be written to the file.
Fields
OpenErr(Status)
A file could not be opened.
ReadErr(Status)
A file could not be read.
DeleteErr(Status)
A file could not be deleted.
FlushErr(Status)
A file could not be flushed.
SeekErr
A seek operation was attempted to be made on a deleted file
VolumeLabelErr
Failed to get a volume label on a partition.
Trait Implementations§
Source§impl Error for FsError
impl Error for FsError
1.30.0 · 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 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