#[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.
Mlink = 34
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.
Nolink = 47
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§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Errno
impl<'de> Deserialize<'de> for Errno
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Errno, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Errno, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Error for Errno
impl Error for Errno
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<WasiThreadError> for Errno
impl From<WasiThreadError> for Errno
Source§fn from(a: WasiThreadError) -> Errno
fn from(a: WasiThreadError) -> Errno
Source§impl FromToNativeWasmType for Errno
impl FromToNativeWasmType for Errno
Source§fn to_native(self) -> <Errno as FromToNativeWasmType>::Native
fn to_native(self) -> <Errno as FromToNativeWasmType>::Native
Self::Native
. Read moreSource§fn from_native(n: <Errno as FromToNativeWasmType>::Native) -> Errno
fn from_native(n: <Errno as FromToNativeWasmType>::Native) -> Errno
Source§fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
Source§impl Ord for Errno
impl Ord for Errno
Source§impl PartialOrd for Errno
impl PartialOrd for Errno
Source§impl Serialize for Errno
impl Serialize for Errno
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFromPrimitive for Errno
impl TryFromPrimitive for Errno
Source§impl ValueType for Errno
impl ValueType for Errno
Source§fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
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>
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
Source§impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
Source§type CStruct = S1<A1>
type CStruct = S1<A1>
Source§unsafe fn from_array(
_store: &mut impl AsStoreMut,
array: <A1 as WasmTypeList>::Array,
) -> A1
unsafe fn from_array( _store: &mut impl AsStoreMut, array: <A1 as WasmTypeList>::Array, ) -> A1
Self
based on an array of values. Read moreSource§unsafe fn from_slice(
store: &mut impl AsStoreMut,
slice: &[RawValue],
) -> Result<A1, TryFromSliceError>
unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue], ) -> Result<A1, TryFromSliceError>
Self
based on a slice of values. Read moreSource§unsafe fn into_array(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::Array
unsafe fn into_array( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::Array
Array
from a tuple
(list) of values. Read moreSource§fn empty_array() -> <A1 as WasmTypeList>::Array
fn empty_array() -> <A1 as WasmTypeList>::Array
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
unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: <A1 as WasmTypeList>::CStruct, ) -> A1
CStruct
. Read moreSource§unsafe fn into_c_struct(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::CStruct
unsafe fn into_c_struct( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::CStruct
CStruct
from a
tuple (list) of values. Read moreSource§unsafe fn write_c_struct_to_ptr(
c_struct: <A1 as WasmTypeList>::CStruct,
_ptr: *mut RawValue,
)
unsafe fn write_c_struct_to_ptr( c_struct: <A1 as WasmTypeList>::CStruct, _ptr: *mut RawValue, )
RawValue
. Read more