Enum lair_keystore::dependencies::one_err::ErrNo

source ·
#[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) -> 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 + 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 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> 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<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

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

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

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where 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 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>,

§

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

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,