Enum wasmer_wasi::WasiFsError [−][src]
pub enum WasiFsError {}Show variants
BaseNotDirectory, NotAFile, InvalidFd, AlreadyExists, IOError, AddressInUse, AddressNotAvailable, BrokenPipe, ConnectionAborted, ConnectionRefused, ConnectionReset, Interrupted, InvalidData, InvalidInput, NotConnected, EntityNotFound, NoDevice, PermissionDenied, TimedOut, UnexpectedEof, WouldBlock, WriteZero, UnknownError(__wasi_errno_t),
Expand description
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
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WasiFsError
impl Send for WasiFsError
impl Sync for WasiFsError
impl Unpin for WasiFsError
impl UnwindSafe for WasiFsError
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more