pub enum VortexFsError {
NotFound(String),
PermissionDenied(String),
DiskFull(String),
IoError(String),
AlreadyExists(String),
NotADirectory(String),
IsADirectory(String),
NotEmpty(String),
TornWrite {
path: String,
bytes_written: u64,
intended: u64,
},
Corrupted(String),
}Expand description
Error type for virtual filesystem operations.
Variants§
NotFound(String)
File or directory not found.
PermissionDenied(String)
Permission denied (EACCES).
DiskFull(String)
Disk full (ENOSPC).
IoError(String)
I/O error (EIO).
AlreadyExists(String)
File already exists.
NotADirectory(String)
Not a directory.
IsADirectory(String)
Is a directory (tried to read as file).
NotEmpty(String)
Directory not empty (tried to remove).
TornWrite
Torn write — partial write succeeded then failed.
Corrupted(String)
Data corruption injected.
Trait Implementations§
Source§impl Clone for VortexFsError
impl Clone for VortexFsError
Source§fn clone(&self) -> VortexFsError
fn clone(&self) -> VortexFsError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VortexFsError
impl Debug for VortexFsError
Source§impl Display for VortexFsError
impl Display for VortexFsError
Source§impl Error for VortexFsError
impl Error for VortexFsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for VortexFsError
impl PartialEq for VortexFsError
impl Eq for VortexFsError
impl StructuralPartialEq for VortexFsError
Auto Trait Implementations§
impl Freeze for VortexFsError
impl RefUnwindSafe for VortexFsError
impl Send for VortexFsError
impl Sync for VortexFsError
impl Unpin for VortexFsError
impl UnsafeUnpin for VortexFsError
impl UnwindSafe for VortexFsError
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