AsyncFusexError

Enum AsyncFusexError 

Source
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

Fields

§source: Error

Error source

§context: Vec<String>

Context of the error

§

WalkdirErr

Error caused by walkdir::Error

Fields

§source: Error

Error source

§context: Vec<String>

Context of the error

§

SnapshotNotFound

Snapshot is not found

Fields

§snapshot_id: String

Snapshot ID

§context: Vec<String>

Context of the error

§

VolumeNotFound

Volume is not found

Fields

§volume_id: String

Volume ID

§context: Vec<String>

Context of the error

§

VolumeAlreadyExist

Volume has already existed

Fields

§volume_id: String

Volume ID

§context: Vec<String>

Context of the error

§

SnapshotNotReady

Snapshot is not ready

Fields

§snapshot_id: String

Snapshot ID

§context: Vec<String>

Context of the error

§

SnapshotAlreadyExist

Snapshot has already existed

Fields

§snapshot_id: String

Snapshot ID

§context: Vec<String>

Context of the error

§

NodeNotFound

Node is not found

Fields

§node_id: String

Node ID

§context: Vec<String>

Context of the error

§

ArgumentInvalid

Argument is invalid

Fields

§context: Vec<String>

Context of the error

§

StartingTokenInvalid

Starting token is invalid

Fields

§starting_token: String

Starting token

§context: Vec<String>

Context of the error

§

ArgumentOutOfRange

Argument is out of range

Fields

§context: Vec<String>

Context of the error

§

StripPrefixErr

Error caused by std::path::StripPrefixError

Fields

§source: StripPrefixError

Error source

§context: Vec<String>

Context of the error

§

NixErr

Error caused by nix::Error

Fields

§source: Error

Error source

§context: Vec<String>

Context of the error

§

MountErr

Failed to mount

Fields

§from: PathBuf

Source to mount

§target: PathBuf

Mount point

§context: Vec<String>

Context of the error

§

UmountErr

Failed to umount

Fields

§target: PathBuf

Mount point to umount

§context: Vec<String>

Context of the error

§

SystemTimeErr

Error caused by std::time::SystemTimeError

Fields

§source: SystemTimeError

Error source

§context: Vec<String>

Context of the error

§

JoinErr

Error caused by tokio::task::JoinError given by tokio::task::spawn*

Fields

§source: JoinError

Error source

§context: Vec<String>

Context of the error

§

TransactionRetryLimitExceededErr

Error caused by module kv_engine’s MetaTxn retry limit exceeded

Fields

§context: Vec<String>

Context of the error

§

InternalErr

Error caused by internal logic

Fields

§source: Error

Error source

§context: Vec<String>

Context of the error

§

Unimplemented

API is not implemented

Fields

§context: Vec<String>

Context of the error

§

InconsistentFS

FS is inconsistent, as some mentioned nodes are not in the cache.

Fields

§context: Vec<String>

Context of the error

§

CacheClusterErr

Cache cluster error

Fields

§context: Vec<String>

Context of the error

§

DistributeCacheManagerErr

Distribute cache manager

Fields

§context: Vec<String>

Context of the error

Implementations§

Source§

impl AsyncFusexError

Source

pub fn add_context<C>(self, ctx: C) -> Self
where C: Into<String>,

Source

pub fn with_context<C, F>(self, context_fn: F) -> Self
where C: Into<String>, F: FnOnce() -> C,

Trait Implementations§

Source§

impl Debug for AsyncFusexError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AsyncFusexError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for AsyncFusexError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Errno> for AsyncFusexError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AsyncFusexError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AsyncFusexError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AsyncFusexError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<JoinError> for AsyncFusexError

Source§

fn from(error: JoinError) -> Self

Converts to this type from the input type.
Source§

impl From<StripPrefixError> for AsyncFusexError

Source§

fn from(error: StripPrefixError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTimeError> for AsyncFusexError

Source§

fn from(error: SystemTimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<U> Cast for U

Source§

fn cast<T>(self) -> T
where T: TryFrom<Self>, Self: Sized + Display + Copy,

Performs the conversion.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more