wasmtime_wasi

Type Alias FsError

Source
pub type FsError = TrappableError<ErrorCode>;

Aliased Type§

struct FsError { /* private fields */ }

Implementations

Source§

impl<T> TrappableError<T>

Source

pub fn trap(err: impl Into<Error>) -> TrappableError<T>

Source

pub fn downcast(self) -> Result<T>
where T: Error + Send + Sync + 'static,

Source

pub fn downcast_ref(&self) -> Option<&T>
where T: Error + Send + Sync + 'static,

Trait Implementations§

Source§

impl From<Error> for FsError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ResourceTableError> for FsError

Source§

fn from(error: ResourceTableError) -> Self

Converts to this type from the input type.
Source§

impl<T> Debug for TrappableError<T>

Source§

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

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

impl<T> Display for TrappableError<T>

Source§

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

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

impl<T> Error for TrappableError<T>

1.30.0 · 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<T> From<T> for TrappableError<T>
where T: Error + Send + Sync + 'static,

Source§

fn from(error: T) -> Self

Converts to this type from the input type.