pub enum Error {
Show 17 variants
Io(Error),
NotFound(String),
AlreadyExists(String),
NotADirectory(String),
IsADirectory(String),
NotEmpty(String),
PermissionDenied,
NoSpace,
ReadOnly,
InvalidArgument(String),
NulError(NulError),
Filesystem(i32),
DeviceNotFound,
MountPointNotFound,
NameTooLong,
TooManyOpenFiles,
InvalidFilesystem,
}Expand description
Error type for ext4 filesystem operations.
Variants§
Io(Error)
I/O error
NotFound(String)
File or directory not found
AlreadyExists(String)
File or directory already exists
NotADirectory(String)
Path is not a directory
IsADirectory(String)
Path is a directory (when file expected)
NotEmpty(String)
Directory is not empty
PermissionDenied
Permission denied
NoSpace
No space left on device
ReadOnly
Filesystem is read-only
InvalidArgument(String)
Invalid argument
NulError(NulError)
Path contains null byte
Filesystem(i32)
Filesystem-level error with errno
DeviceNotFound
Device not found or not registered
MountPointNotFound
Mount point not found
NameTooLong
Name too long
TooManyOpenFiles
Too many open files
InvalidFilesystem
Invalid filesystem
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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