pub enum FsError {
Show 22 variants
NotFound,
AlreadyExists,
PermissionDenied,
NotADirectory,
NotAFile,
IsADirectory,
ReadOnly,
InvalidPath,
NoRootFs,
AlreadyMounted,
NotMounted,
UnknownFsType,
IoError,
DirectoryNotEmpty,
TooManyOpenFiles,
BadFileDescriptor,
NotSupported,
NotASymlink,
FileTooLarge,
CorruptedData,
SymlinkLoop,
NoSpace,
}Expand description
Filesystem-specific errors
Variants§
NotFound
File or directory not found
AlreadyExists
Path already exists
PermissionDenied
Permission denied
NotADirectory
Target is not a directory
NotAFile
Target is not a file
IsADirectory
Target is a directory (when file expected)
ReadOnly
Filesystem is read-only
InvalidPath
Invalid path format
NoRootFs
Root filesystem not mounted
AlreadyMounted
Path already has a mount point
NotMounted
Path is not a mount point
UnknownFsType
Unknown filesystem type
IoError
I/O error during operation
DirectoryNotEmpty
Directory is not empty
TooManyOpenFiles
File descriptor table is full
BadFileDescriptor
Invalid file descriptor
NotSupported
Operation not supported on this node type
NotASymlink
Target is not a symbolic link
FileTooLarge
File size exceeds maximum supported limit
CorruptedData
On-disk data is corrupt or has invalid magic number
SymlinkLoop
Too many levels of symbolic links (ELOOP)
NoSpace
No space left on device (ENOSPC)
Trait Implementations§
Source§impl From<FsError> for KernelError
impl From<FsError> for KernelError
impl Copy for FsError
impl Eq 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)