wasmer_wasix_types::wasi

Enum Errno

Source
#[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§

Source§

impl Errno

Source

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

Source

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

Trait Implementations§

Source§

impl Clone for Errno

Source§

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

impl Debug for Errno

Source§

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

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

impl Display for Errno

Source§

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

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

impl Error for Errno

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 From<Errno> for Error

Source§

fn from(err: Errno) -> Self

Converts to this type from the input type.
Source§

impl From<Errno> for ErrorKind

Source§

fn from(err: Errno) -> Self

Converts to this type from the input type.
Source§

impl From<Errno> for ExitCode

Source§

fn from(val: Errno) -> Self

Converts to this type from the input type.
Source§

impl From<Errno> for u16

Source§

fn from(enum_value: Errno) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Errno

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ExitCode> for Errno

Source§

fn from(code: ExitCode) -> Self

Converts to this type from the input type.
Source§

impl FromToNativeWasmType for Errno

Source§

type Native = i32

Native Wasm type.
Source§

fn to_native(self) -> Self::Native

Convert self to Self::Native. Read more
Source§

fn from_native(n: Self::Native) -> Self

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

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

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

impl Hash for Errno

Source§

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

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

impl Ord for Errno

Source§

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,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Errno

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl PartialOrd for Errno

Source§

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

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

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

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

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

impl TryFrom<u16> for Errno

Source§

type Error = TryFromPrimitiveError<Errno>

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

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

Performs the conversion.
Source§

impl TryFromPrimitive for Errno

Source§

const NAME: &'static str = "Errno"

Source§

type Primitive = u16

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl ValueType for Errno

Source§

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

impl Copy for Errno

Source§

impl Eq for Errno

Source§

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

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

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

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

Source§

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

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

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

Source§

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

Compare self to key and return their ordering.
Source§

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

Source§

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

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.
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.
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> LayoutRaw for T

Source§

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

Returns the layout of the type.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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

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> Upcastable for T
where T: Any + Send + Sync + 'static,

Source§

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

upcast ref
Source§

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

upcast mut ref
Source§

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

upcast boxed dyn
Source§

impl<A1> WasmTypeList for A1

Source§

type CStruct = S1<A1>

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

type Array = [RawValue; 1]

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

fn size() -> u32

The size of the array
Source§

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

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

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

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

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

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

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

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

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

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

Get the Wasm types for the tuple (list) of currently represented values.
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