Enum filedescriptor::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 19 variants Pipe(Error), Socketpair(Error), Socket(Error), Bind(Error), Getsockname(Error), Listen(Error), Connect(Error), Accept(Error), Fcntl(Error), Cloexec(Error), FionBio(Error), Poll(Error), Dup { fd: i64, source: Error, }, Dup2 { src_fd: i64, dest_fd: i64, source: Error, }, IllegalFdValue(i64), FdValueOutsideFdSetSize(i64), OnlySocketsNonBlocking, SetStdHandle(Error), Io(Error),
}

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

Tuple Fields of Pipe

0: Error
Socketpair

Tuple Fields of Socketpair

0: Error
Socket

Tuple Fields of Socket

0: Error
Bind

Tuple Fields of Bind

0: Error
Getsockname

Tuple Fields of Getsockname

0: Error
Listen

Tuple Fields of Listen

0: Error
Connect

Tuple Fields of Connect

0: Error
Accept

Tuple Fields of Accept

0: Error
Fcntl

Tuple Fields of Fcntl

0: Error
Cloexec

Tuple Fields of Cloexec

0: Error
FionBio

Tuple Fields of FionBio

0: Error
Poll

Tuple Fields of Poll

0: Error
Dup

Fields of Dup

fd: i64source: Error
Dup2

Fields of Dup2

src_fd: i64dest_fd: i64source: Error
IllegalFdValue

Tuple Fields of IllegalFdValue

0: i64
FdValueOutsideFdSetSize

Tuple Fields of FdValueOutsideFdSetSize

0: i64
OnlySocketsNonBlocking
SetStdHandle

Tuple Fields of SetStdHandle

0: Error
Io

Tuple Fields of Io

0: Error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.