#[repr(i32)]pub enum Error {
Show 20 variants
PermissionDenied = 1,
NotFound = 2,
Interrupted = 4,
WouldBlock = 11,
AlreadyExists = 17,
InvalidInput = 22,
BrokenPipe = 32,
AddrInUse = 98,
AddrNotAvailable = 99,
ConnectionAborted = 103,
ConnectionReset = 104,
NotConnected = 107,
TimedOut = 110,
ConnectionRefused = 111,
InvalidData = 536_870_912,
WriteZero = 536_870_913,
UnexpectedEof = 536_870_914,
Other = 1_073_741_823,
UserRangeStart = 1_073_741_824,
UserRangeEnd = 2_147_483_647,
}🔬This is a nightly-only experimental API. (
sgx_platform #56975)Available on Fortanix and SGX only.
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 = 1
🔬This is a nightly-only experimental API. (
sgx_platform #56975)NotFound = 2
🔬This is a nightly-only experimental API. (
sgx_platform #56975)Interrupted = 4
🔬This is a nightly-only experimental API. (
sgx_platform #56975)WouldBlock = 11
🔬This is a nightly-only experimental API. (
sgx_platform #56975)AlreadyExists = 17
🔬This is a nightly-only experimental API. (
sgx_platform #56975)InvalidInput = 22
🔬This is a nightly-only experimental API. (
sgx_platform #56975)BrokenPipe = 32
🔬This is a nightly-only experimental API. (
sgx_platform #56975)AddrInUse = 98
🔬This is a nightly-only experimental API. (
sgx_platform #56975)AddrNotAvailable = 99
🔬This is a nightly-only experimental API. (
sgx_platform #56975)ConnectionAborted = 103
🔬This is a nightly-only experimental API. (
sgx_platform #56975)ConnectionReset = 104
🔬This is a nightly-only experimental API. (
sgx_platform #56975)NotConnected = 107
🔬This is a nightly-only experimental API. (
sgx_platform #56975)TimedOut = 110
🔬This is a nightly-only experimental API. (
sgx_platform #56975)ConnectionRefused = 111
🔬This is a nightly-only experimental API. (
sgx_platform #56975)InvalidData = 536_870_912
🔬This is a nightly-only experimental API. (
sgx_platform #56975)WriteZero = 536_870_913
🔬This is a nightly-only experimental API. (
sgx_platform #56975)UnexpectedEof = 536_870_914
🔬This is a nightly-only experimental API. (
sgx_platform #56975)Other = 1_073_741_823
🔬This is a nightly-only experimental API. (
sgx_platform #56975)This value is reserved for Other, but all undefined values also map
to Other.
UserRangeStart = 1_073_741_824
🔬This is a nightly-only experimental API. (
sgx_platform #56975)Start of the range of values reserved for user-defined errors.
UserRangeEnd = 2_147_483_647
🔬This is a nightly-only experimental API. (
sgx_platform #56975)End (inclusive) of the range of values reserved for user-defined errors.
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> UserSafeCopyDestination<T> for T
impl<T> UserSafeCopyDestination<T> for T
Source§fn as_mut_ptr(&mut self) -> *mut T
fn as_mut_ptr(&mut self) -> *mut T
🔬This is a nightly-only experimental API. (
sgx_platform #56975)Available on Fortanix and SGX only.
Returns a pointer for writing to the value.