#[non_exhaustive]
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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
Should always be Self
Performance hack: Clone doesn’t get inlined for Copy types in debug mode, so make it inline anyway.
Tests if Self the same as the type T Read more
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more