Enum wasmer_wasix::types::wasi::Errno

#[repr(u16)]
pub enum Errno {
Show 80 variants Success = 0, Toobig = 1, Access = 2, Addrinuse = 3, Addrnotavail = 4, Afnosupport = 5, Again = 6, Already = 7, Badf = 8, Badmsg = 9, Busy = 10, Canceled = 11, Child = 12, Connaborted = 13, Connrefused = 14, Connreset = 15, Deadlk = 16, Destaddrreq = 17, Dom = 18, Dquot = 19, Exist = 20, Fault = 21, Fbig = 22, Hostunreach = 23, Idrm = 24, Ilseq = 25, Inprogress = 26, Intr = 27, Inval = 28, Io = 29, Isconn = 30, Isdir = 31, Loop = 32, Mfile = 33, Mlink = 34, Msgsize = 35, Multihop = 36, Nametoolong = 37, Netdown = 38, Netreset = 39, Netunreach = 40, Nfile = 41, Nobufs = 42, Nodev = 43, Noent = 44, Noexec = 45, Nolck = 46, Nolink = 47, Nomem = 48, Nomsg = 49, Noprotoopt = 50, Nospc = 51, Nosys = 52, Notconn = 53, Notdir = 54, Notempty = 55, Notrecoverable = 56, Notsock = 57, Notsup = 58, Notty = 59, Nxio = 60, Overflow = 61, Ownerdead = 62, Perm = 63, Pipe = 64, Proto = 65, Protonosupport = 66, Prototype = 67, Range = 68, Rofs = 69, Spipe = 70, Srch = 71, Stale = 72, Timedout = 73, Txtbsy = 74, Xdev = 75, Notcapable = 76, Shutdown = 77, Memviolation = 78, Unknown = 79,
}
Expand description

Error codes returned by functions. Not all of these error codes are returned by the functions provided by this API; some are used in higher-level library layers, and others are provided merely for alignment with POSIX.

Variants§

§

Success = 0

No error occurred. System call completed successfully.

§

Toobig = 1

Argument list too long.

§

Access = 2

Permission denied.

§

Addrinuse = 3

Address in use.

§

Addrnotavail = 4

Address not available.

§

Afnosupport = 5

Address family not supported.

§

Again = 6

Resource unavailable, or operation would block.

§

Already = 7

Connection already in progress.

§

Badf = 8

Bad file descriptor.

§

Badmsg = 9

Bad message.

§

Busy = 10

Device or resource busy.

§

Canceled = 11

Operation canceled.

§

Child = 12

No child processes.

§

Connaborted = 13

Connection aborted.

§

Connrefused = 14

Connection refused.

§

Connreset = 15

Connection reset.

§

Deadlk = 16

Resource deadlock would occur.

§

Destaddrreq = 17

Destination address required.

§

Dom = 18

Mathematics argument out of domain of function.

§

Dquot = 19

Reserved.

§

Exist = 20

File exists.

§

Fault = 21

Bad address.

§

Fbig = 22

File too large.

§

Hostunreach = 23

Host is unreachable.

§

Idrm = 24

Identifier removed.

§

Ilseq = 25

Illegal byte sequence.

§

Inprogress = 26

Operation in progress.

§

Intr = 27

Interrupted function.

§

Inval = 28

Invalid argument.

§

Io = 29

I/O error.

§

Isconn = 30

Socket is connected.

§

Isdir = 31

Is a directory.

§

Loop = 32

Too many levels of symbolic links.

§

Mfile = 33

File descriptor value too large.

Too many links.

§

Msgsize = 35

Message too large.

§

Multihop = 36

Reserved.

§

Nametoolong = 37

Filename too long.

§

Netdown = 38

Network is down.

§

Netreset = 39

Connection aborted by network.

§

Netunreach = 40

Network unreachable.

§

Nfile = 41

Too many files open in system.

§

Nobufs = 42

No buffer space available.

§

Nodev = 43

No such device.

§

Noent = 44

No such file or directory.

§

Noexec = 45

Executable file format error.

§

Nolck = 46

No locks available.

Reserved.

§

Nomem = 48

Not enough space.

§

Nomsg = 49

No message of the desired type.

§

Noprotoopt = 50

Protocol not available.

§

Nospc = 51

No space left on device.

§

Nosys = 52

Function not supported.

§

Notconn = 53

The socket is not connected.

§

Notdir = 54

Not a directory or a symbolic link to a directory.

§

Notempty = 55

Directory not empty.

§

Notrecoverable = 56

State not recoverable.

§

Notsock = 57

Not a socket.

§

Notsup = 58

Not supported, or operation not supported on socket.

§

Notty = 59

Inappropriate I/O control operation.

§

Nxio = 60

No such device or address.

§

Overflow = 61

Value too large to be stored in data type.

§

Ownerdead = 62

Previous owner died.

§

Perm = 63

Operation not permitted.

§

Pipe = 64

Broken pipe.

§

Proto = 65

Protocol error.

§

Protonosupport = 66

Protocol not supported.

§

Prototype = 67

Protocol wrong type for socket.

§

Range = 68

Result too large.

§

Rofs = 69

Read-only file system.

§

Spipe = 70

Invalid seek.

§

Srch = 71

No such process.

§

Stale = 72

Reserved.

§

Timedout = 73

Connection timed out.

§

Txtbsy = 74

Text file busy.

§

Xdev = 75

Cross-device link.

§

Notcapable = 76

Extension: Capabilities insufficient.

§

Shutdown = 77

Cannot send after socket shutdown.

§

Memviolation = 78

Memory access violation.

§

Unknown = 79

An unknown error has occured

Implementations§

§

impl Errno

pub fn name(&self) -> &'static str

pub fn message(&self) -> &'static str

Trait Implementations§

§

impl Clone for Errno

§

fn clone(&self) -> Errno

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Errno

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Errno

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Errno, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for Errno

§

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

Formats the value using the given formatter. Read more
§

impl Error for Errno

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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
§

impl From<Errno> for Error

§

fn from(err: Errno) -> Error

Converts to this type from the input type.
§

impl From<Errno> for ErrorKind

§

fn from(err: Errno) -> ErrorKind

Converts to this type from the input type.
§

impl From<Errno> for ExitCode

§

fn from(val: Errno) -> ExitCode

Converts to this type from the input type.
§

impl From<Error> for Errno

§

fn from(err: Error) -> Errno

Converts to this type from the input type.
§

impl From<ExitCode> for Errno

§

fn from(code: ExitCode) -> Errno

Converts to this type from the input type.
source§

impl From<WasiThreadError> for Errno

source§

fn from(a: WasiThreadError) -> Errno

Converts to this type from the input type.
§

impl FromToNativeWasmType for Errno

§

type Native = i32

Native Wasm type.
§

fn to_native(self) -> <Errno as FromToNativeWasmType>::Native

Convert self to Self::Native. Read more
§

fn from_native(n: <Errno as FromToNativeWasmType>::Native) -> Errno

Convert a value of kind Self::Native to Self. Read more
§

fn is_from_store(&self, _store: &impl AsStoreRef) -> bool

Returns whether the given value is from the given store. Read more
§

impl Hash for Errno

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for Errno

§

fn cmp(&self, other: &Errno) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Errno

§

fn eq(&self, other: &Errno) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Errno

§

fn partial_cmp(&self, other: &Errno) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Serialize for Errno

§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<u16> for Errno

§

type Error = TryFromPrimitiveError<Errno>

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

fn try_from(number: u16) -> Result<Errno, TryFromPrimitiveError<Errno>>

Performs the conversion.
§

impl TryFromPrimitive for Errno

§

type Primitive = u16

§

const NAME: &'static str = "Errno"

§

fn try_from_primitive( number: <Errno as TryFromPrimitive>::Primitive, ) -> Result<Errno, TryFromPrimitiveError<Errno>>

§

impl ValueType for Errno

§

fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])

This method is passed a byte slice which contains the byte representation of self. It must zero out any bytes which are uninitialized (e.g. padding bytes).
§

impl Copy for Errno

§

impl Eq for Errno

§

impl StructuralPartialEq for Errno

Auto Trait Implementations§

§

impl Freeze for Errno

§

impl RefUnwindSafe for Errno

§

impl Send for Errno

§

impl Sync for Errno

§

impl Unpin for Errno

§

impl UnwindSafe for Errno

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
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
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<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> DynClone for T
where T: Clone,

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The metadata type for pointers and references to this type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

default 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>,

§

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>,

§

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.
§

impl<T> Upcastable for T
where T: Any + Debug + 'static,

§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

§

impl<T> Upcastable for T
where T: Any + Send + Sync + 'static,

§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

upcast ref
§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

upcast mut ref
§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

upcast boxed dyn
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<A1> WasmTypeList for A1
where A1: FromToNativeWasmType,

§

type CStruct = S1<A1>

The C type (a struct) that can hold/represent all the represented values.
§

type Array = [RawValue; 1]

The array type that can hold all the represented values. Read more
§

fn size() -> u32

The size of the array
§

unsafe fn from_array( _store: &mut impl AsStoreMut, array: <A1 as WasmTypeList>::Array, ) -> A1

Constructs Self based on an array of values. Read more
§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue], ) -> Result<A1, TryFromSliceError>

Constructs Self based on a slice of values. Read more
§

unsafe fn into_array( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::Array

Builds and returns an array of type Array from a tuple (list) of values. Read more
§

fn empty_array() -> <A1 as WasmTypeList>::Array

Allocates and return an empty array of type Array that will hold a tuple (list) of values, usually to hold the returned values of a WebAssembly function call.
§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: <A1 as WasmTypeList>::CStruct, ) -> A1

Builds a tuple (list) of values from a C struct of type CStruct. Read more
§

unsafe fn into_c_struct( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::CStruct

Builds and returns a C struct of type CStruct from a tuple (list) of values. Read more
§

unsafe fn write_c_struct_to_ptr( c_struct: <A1 as WasmTypeList>::CStruct, _ptr: *mut RawValue, )

Writes the contents of a C struct to an array of RawValue. Read more
§

fn wasm_types() -> &'static [Type]

Get the Wasm types for the tuple (list) of currently represented values.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

source§

impl<N> NodeTrait for N
where N: Copy + Ord + Hash,