Enum virtual_fs::FsError
source · pub enum FsError {
Show 27 variants
BaseNotDirectory,
NotAFile,
InvalidFd,
AlreadyExists,
Lock,
IOError,
AddressInUse,
AddressNotAvailable,
BrokenPipe,
ConnectionAborted,
ConnectionRefused,
ConnectionReset,
Interrupted,
InvalidData,
InvalidInput,
NotConnected,
EntryNotFound,
NoDevice,
PermissionDenied,
TimedOut,
UnexpectedEof,
WouldBlock,
WriteZero,
DirectoryNotEmpty,
StorageFull,
UnknownError,
Unsupported,
}
Expand description
Error type for external users
Variants§
BaseNotDirectory
The fd given as a base was not a directory so the operation was not possible
NotAFile
Expected a file but found not a file
InvalidFd
The fd given was not usable
AlreadyExists
File exists
Lock
The filesystem has failed to lock a resource.
IOError
Something failed when doing IO. These errors can generally not be handled. It may work if tried again.
AddressInUse
The address was in use
AddressNotAvailable
The address could not be found
BrokenPipe
A pipe was closed
ConnectionAborted
The connection was aborted
ConnectionRefused
The connection request was refused
ConnectionReset
The connection was reset
Interrupted
The operation was interrupted before it could finish
InvalidData
Invalid internal data, if the argument data is invalid, use InvalidInput
InvalidInput
The provided data is invalid
NotConnected
Could not perform the operation because there was not an open connection
EntryNotFound
The requested file or directory could not be found
NoDevice
The requested device couldn’t be accessed
PermissionDenied
Caller was not allowed to perform this operation
TimedOut
The operation did not complete within the given amount of time
UnexpectedEof
Found EOF when EOF was not expected
WouldBlock
Operation would block, this error lets the caller know that they can try again
WriteZero
A call to write returned 0
DirectoryNotEmpty
Directory not Empty
StorageFull
UnknownError
Some other unhandled error. If you see this, it’s probably a bug.
Unsupported
Operation is not supported on this filesystem
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for FsError
impl PartialEq for FsError
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§
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.