Enum fortanix_sgx_abi::Error[][src]

#[repr(i32)]
pub enum Error {
Show 20 variants PermissionDenied, NotFound, Interrupted, WouldBlock, AlreadyExists, InvalidInput, BrokenPipe, AddrInUse, AddrNotAvailable, ConnectionAborted, ConnectionReset, NotConnected, TimedOut, ConnectionRefused, InvalidData, WriteZero, UnexpectedEof, Other, UserRangeStart, UserRangeEnd,
}
Expand description

Error code definitions and space allocation.

Only non-zero positive values are valid errors. The variants are designed to map to std::io::ErrorKind. See the source for the value mapping.

Variants

PermissionDenied
NotFound
Interrupted
WouldBlock
AlreadyExists
InvalidInput
BrokenPipe
AddrInUse
AddrNotAvailable
ConnectionAborted
ConnectionReset
NotConnected
TimedOut
ConnectionRefused
InvalidData
WriteZero
UnexpectedEof
Other

This value is reserved for Other, but all undefined values also map to Other.

UserRangeStart

Start of the range of values reserved for user-defined errors.

UserRangeEnd

End (inclusive) of the range of values reserved for user-defined errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.