#[non_exhaustive]
#[repr(i32)]
pub enum ErrNo {
Show 73 variants Perm, NoEnt, Srch, Intr, Io, NxIo, TooBig, NoExec, BadF, Child, NoMem, Fault, Busy, Exist, XDev, NoDev, NotDir, IsDir, Inval, NFile, MFile, NotTy, TxtBsy, FBig, NoSpc, SPipe, ROFS, MLink, Pipe, Dom, Range, DeadLk, NameTooLong, NoLck, NoSys, NotEmpty, Loop, WouldBlock, NoMsg, IdRm, NoStr, NoData, Time, NoSR, NoLink, Proto, BadMsg, Overflow, IlSeq, NotSock, DestAddrReq, MsgSize, ProtoType, NoProtoOpt, ProtoNoSupport, OpNotSupp, AFNoSupport, AddrInUse, AddrNotAvail, NetDown, NetUnreach, NetReset, ConnAborted, ConnReset, NoBufS, IsConn, NotConn, TimedOut, ConnRefused, HostUnreach, Already, InProgress, Other,
}
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

Permission denied

§

NoEnt

No such file or directory

§

Srch

No such process

§

Intr

Interrupted system call

§

Io

I/O error

§

NxIo

No such device or address

§

TooBig

Arg list too long

§

NoExec

Exec format error

§

BadF

Bad file number

§

Child

No child processes

§

NoMem

Out of memory

§

Fault

Bad address

§

Busy

Device or resource busy

§

Exist

File exists

§

XDev

Cross-device link

§

NoDev

No such device

§

NotDir

Not a directory

§

IsDir

Is a directory

§

Inval

Invalid argument

§

NFile

File table overflow

§

MFile

Too many open files

§

NotTy

Not a typewriter

§

TxtBsy

Text file busy

§

FBig

File too large

§

NoSpc

No space left on device

§

SPipe

Illegal seek

§

ROFS

Read-only file system

Too many links

§

Pipe

Broken pipe

§

Dom

Math argument out of domain of func

§

Range

Math result not representable

§

DeadLk

Resource deadlock would occur

§

NameTooLong

File name too long

§

NoLck

No record locks available

§

NoSys

Function not implemented

§

NotEmpty

Directory not empty

§

Loop

Too many symbolic links encountered

§

WouldBlock

Operation would block

§

NoMsg

No message of desired type

§

IdRm

Identifier removed

§

NoStr

Device not a stream

§

NoData

No data available

§

Time

Timer expired

§

NoSR

Out of streams resources

Link has been severed

§

Proto

Protocol error

§

BadMsg

Not a data message

§

Overflow

Value too large for defined data type

§

IlSeq

Illegal byte sequence

§

NotSock

Socket operation on non-socket

§

DestAddrReq

Destination address required

§

MsgSize

Message too long

§

ProtoType

Protocol wrong type for socket

§

NoProtoOpt

Protocol not available

§

ProtoNoSupport

Protocol not supported

§

OpNotSupp

Operation not supported on transport endpoint

§

AFNoSupport

Address family not supported by protocol

§

AddrInUse

Address already in use

§

AddrNotAvail

Cannot assign requested address

§

NetDown

Network is down

§

NetUnreach

Network is unreachable

§

NetReset

Network dropped connection because of reset

§

ConnAborted

Software caused connection abort

§

ConnReset

Connection reset by peer

§

NoBufS

No buffer space available

§

IsConn

Transport endpoint is already connected

§

NotConn

Transport endpoint is not connected

§

TimedOut

Connection timed out

§

ConnRefused

Connection refused

§

HostUnreach

No route to host

§

Already

Operation already in progress

§

InProgress

Operation now in progress

§

Other

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

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

impl PartialEq<ErrNo> 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<ErrNo> 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, Global>) -> Box<dyn Any, Global>

§

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

§

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

§

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

§

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

§

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 = mem::align_of::<T>()

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

§

type Output = T

Should always be Self
source§

impl<T> Scalar for Twhere T: Copy + PartialEq<T> + Debug + Any,

source§

fn inlined_clone(&self) -> T

Performance hack: Clone doesn’t get inlined for Copy types in debug mode, so make it inline anyway.
source§

fn is<T>() -> boolwhere T: Scalar,

Tests if Self the same as the type T Read more
§

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, Global>) -> Box<dyn Any, Global>

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<T> + Ord,

§

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

source§

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

§

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

§

impl<T> State for Twhere T: Debug + Clone + Send + Sync,

§

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