Enum wasmer_wasi::WasiFsError [−][src]
Error type for external users
Variants
The fd given as a base was not a directory so the operation was not possible
Expected a file but found not a file
The fd given was not usable
File exists
Something failed when doing IO. These errors can generally not be handled. It may work if tried again.
The address was in use
The address could not be found
A pipe was closed
The connection was aborted
The connection request was refused
The connection was reset
The operation was interrupted before it could finish
Invalid internal data, if the argument data is invalid, use InvalidInput
The provided data is invalid
Could not perform the operation because there was not an open connection
The requested file or directory could not be found
The requested device couldn't be accessed
Caller was not allowed to perform this operation
The operation did not complete within the given amount of time
Found EOF when EOF was not expected
Operation would block, this error lets the caller know that they can try again
A call to write returned 0
UnknownError(__wasi_errno_t)
A WASI error without an external name. If you encounter this it means that there's probably a bug on our side (maybe as simple as forgetting to wrap this error, but perhaps something broke)
Implementations
impl WasiFsError
[src]
pub fn from_wasi_err(err: __wasi_errno_t) -> WasiFsError
[src]
pub fn into_wasi_err(self) -> __wasi_errno_t
[src]
Trait Implementations
impl Clone for WasiFsError
[src]
fn clone(&self) -> WasiFsError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WasiFsError
[src]
impl Debug for WasiFsError
[src]
impl Display for WasiFsError
[src]
impl Eq for WasiFsError
[src]
impl Error for WasiFsError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for WasiFsError
[src]
impl PartialEq<WasiFsError> for WasiFsError
[src]
fn eq(&self, other: &WasiFsError) -> bool
[src]
fn ne(&self, other: &WasiFsError) -> bool
[src]
impl StructuralEq for WasiFsError
[src]
impl StructuralPartialEq for WasiFsError
[src]
Auto Trait Implementations
impl RefUnwindSafe for WasiFsError
[src]
impl Send for WasiFsError
[src]
impl Sync for WasiFsError
[src]
impl Unpin for WasiFsError
[src]
impl UnwindSafe for WasiFsError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,