pub enum VfsError {
Show 13 variants
NotFound,
AlreadyExists,
NotADirectory,
NotAFile,
PermissionDenied,
DeviceError(DeviceError),
InvalidArgument,
IoError,
MaxSymlinkDepth,
FsTypeNotSupported,
EmptyPath,
NotImplemented,
DirectoryNotEmpty,
}Variants§
NotFound
文件或目录不存在
AlreadyExists
文件或目录已存在
NotADirectory
路径不是目录
NotAFile
路径不是文件
PermissionDenied
权限不足
DeviceError(DeviceError)
设备错误
InvalidArgument
无效的参数
IoError
IO 错误
MaxSymlinkDepth
符号链接深度过深
FsTypeNotSupported
文件系统类型不支持
EmptyPath
路径为空
NotImplemented
功能未实现
DirectoryNotEmpty
目录非空
Trait Implementations§
Source§impl From<DeviceError> for VfsError
impl From<DeviceError> for VfsError
Source§fn from(e: DeviceError) -> Self
fn from(e: DeviceError) -> Self
Converts to this type from the input type.
impl Copy for VfsError
impl Eq for VfsError
impl StructuralPartialEq for VfsError
Auto Trait Implementations§
impl Freeze for VfsError
impl RefUnwindSafe for VfsError
impl Send for VfsError
impl Sync for VfsError
impl Unpin for VfsError
impl UnwindSafe for VfsError
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