pub enum FsError {
FileNotFound(PathBuf),
DirNotFound(PathBuf),
Create {
path: PathBuf,
reason: String,
},
Read {
path: PathBuf,
reason: String,
},
Write {
path: PathBuf,
reason: String,
},
Delete {
path: PathBuf,
reason: String,
},
UnExpected(String),
}Expand description
§File System Error
Variants§
FileNotFound(PathBuf)
File Not Found
DirNotFound(PathBuf)
Dir Not Found
Create
Create Error (dir or file)
Read
Read Error
Write
Write Error
Delete
Delete Error
UnExpected(String)
UnExpected Error, maybe the file or dir can not access to be read or wrote or found
Trait Implementations§
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more