pub enum FsError {
Show 19 variants
NotFound,
AlreadyExists,
NotDirectory,
IsDirectory,
DirectoryNotEmpty,
PermissionDenied,
BadFileDescriptor,
TooManyOpenFiles,
InvalidArgument,
NameTooLong,
ReadOnlyFs,
NoSpace,
IoError,
NoDevice,
BrokenPipe,
WouldBlock,
NotConnected,
NotSupported,
TooManyLinks,
}Expand description
VFS 错误类型
各错误码对应标准 POSIX errno 值。
Variants§
NotFound
AlreadyExists
NotDirectory
IsDirectory
DirectoryNotEmpty
PermissionDenied
BadFileDescriptor
TooManyOpenFiles
InvalidArgument
NameTooLong
ReadOnlyFs
NoSpace
IoError
NoDevice
BrokenPipe
WouldBlock
NotConnected
NotSupported
TooManyLinks
Implementations§
Trait Implementations§
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)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.