#[non_exhaustive]
#[repr(i32)]
pub enum ErrNo {
Show 73 variants Perm = 1, NoEnt = 2, Srch = 3, Intr = 4, Io = 5, NxIo = 6, TooBig = 7, NoExec = 8, BadF = 9, Child = 10, NoMem = 12, Fault = 14, Busy = 16, Exist = 17, XDev = 18, NoDev = 19, NotDir = 20, IsDir = 21, Inval = 22, NFile = 23, MFile = 24, NotTy = 25, TxtBsy = 26, FBig = 27, NoSpc = 28, SPipe = 29, ROFS = 30, MLink = 31, Pipe = 32, Dom = 33, Range = 34, DeadLk = 35, NameTooLong = 36, NoLck = 37, NoSys = 38, NotEmpty = 39, Loop = 40, WouldBlock = 11, NoMsg = 42, IdRm = 43, NoStr = 60, NoData = 61, Time = 62, NoSR = 63, NoLink = 67, Proto = 71, BadMsg = 74, Overflow = 75, IlSeq = 84, NotSock = 88, DestAddrReq = 89, MsgSize = 90, ProtoType = 91, NoProtoOpt = 92, ProtoNoSupport = 93, OpNotSupp = 95, AFNoSupport = 97, AddrInUse = 98, AddrNotAvail = 99, NetDown = 100, NetUnreach = 101, NetReset = 102, ConnAborted = 103, ConnReset = 104, NoBufS = 105, IsConn = 106, NotConn = 107, TimedOut = 110, ConnRefused = 111, HostUnreach = 113, Already = 114, InProgress = 115, Other = -1,
}
Expand description

Rust translation of errno.h

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Perm = 1

Permission denied

§

NoEnt = 2

No such file or directory

§

Srch = 3

No such process

§

Intr = 4

Interrupted system call

§

Io = 5

I/O error

§

NxIo = 6

No such device or address

§

TooBig = 7

Arg list too long

§

NoExec = 8

Exec format error

§

BadF = 9

Bad file number

§

Child = 10

No child processes

§

NoMem = 12

Out of memory

§

Fault = 14

Bad address

§

Busy = 16

Device or resource busy

§

Exist = 17

File exists

§

XDev = 18

Cross-device link

§

NoDev = 19

No such device

§

NotDir = 20

Not a directory

§

IsDir = 21

Is a directory

§

Inval = 22

Invalid argument

§

NFile = 23

File table overflow

§

MFile = 24

Too many open files

§

NotTy = 25

Not a typewriter

§

TxtBsy = 26

Text file busy

§

FBig = 27

File too large

§

NoSpc = 28

No space left on device

§

SPipe = 29

Illegal seek

§

ROFS = 30

Read-only file system

Too many links

§

Pipe = 32

Broken pipe

§

Dom = 33

Math argument out of domain of func

§

Range = 34

Math result not representable

§

DeadLk = 35

Resource deadlock would occur

§

NameTooLong = 36

File name too long

§

NoLck = 37

No record locks available

§

NoSys = 38

Function not implemented

§

NotEmpty = 39

Directory not empty

§

Loop = 40

Too many symbolic links encountered

§

WouldBlock = 11

Operation would block

§

NoMsg = 42

No message of desired type

§

IdRm = 43

Identifier removed

§

NoStr = 60

Device not a stream

§

NoData = 61

No data available

§

Time = 62

Timer expired

§

NoSR = 63

Out of streams resources

Link has been severed

§

Proto = 71

Protocol error

§

BadMsg = 74

Not a data message

§

Overflow = 75

Value too large for defined data type

§

IlSeq = 84

Illegal byte sequence

§

NotSock = 88

Socket operation on non-socket

§

DestAddrReq = 89

Destination address required

§

MsgSize = 90

Message too long

§

ProtoType = 91

Protocol wrong type for socket

§

NoProtoOpt = 92

Protocol not available

§

ProtoNoSupport = 93

Protocol not supported

§

OpNotSupp = 95

Operation not supported on transport endpoint

§

AFNoSupport = 97

Address family not supported by protocol

§

AddrInUse = 98

Address already in use

§

AddrNotAvail = 99

Cannot assign requested address

§

NetDown = 100

Network is down

§

NetUnreach = 101

Network is unreachable

§

NetReset = 102

Network dropped connection because of reset

§

ConnAborted = 103

Software caused connection abort

§

ConnReset = 104

Connection reset by peer

§

NoBufS = 105

No buffer space available

§

IsConn = 106

Transport endpoint is already connected

§

NotConn = 107

Transport endpoint is not connected

§

TimedOut = 110

Connection timed out

§

ConnRefused = 111

Connection refused

§

HostUnreach = 113

No route to host

§

Already = 114

Operation already in progress

§

InProgress = 115

Operation now in progress

§

Other = -1

Other / Unrecognized Error

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<(), Error>

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

impl<'de> Deserialize<'de> for ErrNo

source§

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

impl Display for ErrNo

source§

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

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

impl From<&ErrNo> for &'static str

source§

fn from(e: &ErrNo) -> &'static str

Converts to this type from the input type.
source§

impl From<&ErrNo> for ErrorKind

source§

fn from(e: &ErrNo) -> ErrorKind

Converts to this type from the input type.
source§

impl From<&ErrNo> for i32

source§

fn from(e: &ErrNo) -> i32

Converts to this type from the input type.
source§

impl From<&ErrorKind> for ErrNo

source§

fn from(e: &ErrorKind) -> ErrNo

Converts to this type from the input type.
source§

impl From<&str> for ErrNo

source§

fn from(e: &str) -> ErrNo

Converts to this type from the input type.
source§

impl From<ErrNo> for &'static str

source§

fn from(e: ErrNo) -> &'static str

Converts to this type from the input type.
source§

impl From<ErrNo> for ErrorKind

source§

fn from(e: ErrNo) -> ErrorKind

Converts to this type from the input type.
source§

impl From<ErrNo> for OneErr

source§

fn from(e: ErrNo) -> OneErr

Converts to this type from the input type.
source§

impl From<ErrNo> for i32

source§

fn from(e: ErrNo) -> i32

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrNo

source§

fn from(e: ErrorKind) -> ErrNo

Converts to this type from the input type.
source§

impl From<i32> for ErrNo

source§

fn from(e: i32) -> ErrNo

Converts to this type from the input type.
source§

impl Hash for ErrNo

source§

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
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) -> Selfwhere Self: Sized,

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

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

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

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

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

impl PartialEq for ErrNo

source§

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

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

impl Serialize for ErrNo

source§

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

impl Copy for ErrNo

source§

impl Eq for ErrNo

source§

impl StructuralEq for ErrNo

source§

impl StructuralPartialEq for ErrNo

Auto Trait Implementations§

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for Twhere T: Any,

§

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

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

§

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 Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

§

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

§

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

Compare self to key and return their ordering.
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
§

impl<Q, K> Equivalent<K> for Qwhere 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 Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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

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

impl<Q, K> Equivalent<K> for Qwhere 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 Qwhere 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> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> 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 Twhere 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.

§

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 type for metadata in pointers and references to Self.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for Twhere 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 Twhere 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 Twhere 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 Twhere 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 Twhere 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 Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

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

impl<T> AutoBTreeMapKey for Twhere T: Serialize + DeserializeOwned + Clone + PartialOrd + Ord,

§

impl<T> AutoHashMapKey for Twhere T: Serialize + DeserializeOwned + Clone + Hash + PartialEq + Eq,

source§

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

source§

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq + Debug,

§

impl<T> Sequence for Twhere T: Eq + Hash,

§

impl<T> WritableBase for Twhere T: Copy + Clone + PartialEq + Eq + Hash + PartialOrd + Ord + Debug,