pub enum AsyncFusexError {
Show 23 variants
IoErr {
source: Error,
context: Vec<String>,
},
WalkdirErr {
source: Error,
context: Vec<String>,
},
SnapshotNotFound {
snapshot_id: String,
context: Vec<String>,
},
VolumeNotFound {
volume_id: String,
context: Vec<String>,
},
VolumeAlreadyExist {
volume_id: String,
context: Vec<String>,
},
SnapshotNotReady {
snapshot_id: String,
context: Vec<String>,
},
SnapshotAlreadyExist {
snapshot_id: String,
context: Vec<String>,
},
NodeNotFound {
node_id: String,
context: Vec<String>,
},
ArgumentInvalid {
context: Vec<String>,
},
StartingTokenInvalid {
starting_token: String,
context: Vec<String>,
},
ArgumentOutOfRange {
context: Vec<String>,
},
StripPrefixErr {
source: StripPrefixError,
context: Vec<String>,
},
NixErr {
source: Error,
context: Vec<String>,
},
MountErr {
from: PathBuf,
target: PathBuf,
context: Vec<String>,
},
UmountErr {
target: PathBuf,
context: Vec<String>,
},
SystemTimeErr {
source: SystemTimeError,
context: Vec<String>,
},
JoinErr {
source: JoinError,
context: Vec<String>,
},
TransactionRetryLimitExceededErr {
context: Vec<String>,
},
InternalErr {
source: Error,
context: Vec<String>,
},
Unimplemented {
context: Vec<String>,
},
InconsistentFS {
context: Vec<String>,
},
CacheClusterErr {
context: Vec<String>,
},
DistributeCacheManagerErr {
context: Vec<String>,
},
}Variants§
IoErr
Error caused by std::io::Error
WalkdirErr
Error caused by walkdir::Error
SnapshotNotFound
Snapshot is not found
VolumeNotFound
Volume is not found
VolumeAlreadyExist
Volume has already existed
SnapshotNotReady
Snapshot is not ready
SnapshotAlreadyExist
Snapshot has already existed
NodeNotFound
Node is not found
ArgumentInvalid
Argument is invalid
StartingTokenInvalid
Starting token is invalid
ArgumentOutOfRange
Argument is out of range
StripPrefixErr
Error caused by std::path::StripPrefixError
NixErr
Error caused by nix::Error
MountErr
Failed to mount
Fields
UmountErr
Failed to umount
SystemTimeErr
Error caused by std::time::SystemTimeError
JoinErr
Error caused by tokio::task::JoinError given by tokio::task::spawn*
TransactionRetryLimitExceededErr
Error caused by module kv_engine’s MetaTxn retry limit exceeded
InternalErr
Error caused by internal logic
Unimplemented
API is not implemented
InconsistentFS
FS is inconsistent, as some mentioned nodes are not in the cache.
CacheClusterErr
Cache cluster error
DistributeCacheManagerErr
Distribute cache manager
Implementations§
Source§impl AsyncFusexError
impl AsyncFusexError
pub fn add_context<C>(self, ctx: C) -> Self
pub fn with_context<C, F>(self, context_fn: F) -> Self
Trait Implementations§
Source§impl Debug for AsyncFusexError
impl Debug for AsyncFusexError
Source§impl Display for AsyncFusexError
impl Display for AsyncFusexError
Source§impl Error for AsyncFusexError
impl Error for AsyncFusexError
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 From<Errno> for AsyncFusexError
impl From<Errno> for AsyncFusexError
Source§impl From<Error> for AsyncFusexError
impl From<Error> for AsyncFusexError
Source§impl From<Error> for AsyncFusexError
impl From<Error> for AsyncFusexError
Source§impl From<Error> for AsyncFusexError
impl From<Error> for AsyncFusexError
Source§impl From<JoinError> for AsyncFusexError
impl From<JoinError> for AsyncFusexError
Source§impl From<StripPrefixError> for AsyncFusexError
impl From<StripPrefixError> for AsyncFusexError
Source§fn from(error: StripPrefixError) -> Self
fn from(error: StripPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for AsyncFusexError
impl From<SystemTimeError> for AsyncFusexError
Source§fn from(error: SystemTimeError) -> Self
fn from(error: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsyncFusexError
impl !RefUnwindSafe for AsyncFusexError
impl Send for AsyncFusexError
impl Sync for AsyncFusexError
impl Unpin for AsyncFusexError
impl !UnwindSafe for AsyncFusexError
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