#[repr(u32)]pub enum Error {
Show 32 variants
CorruptObject = 4_027_580_417,
CorruptObject2 = 4_027_580_418,
NotAvailable = 4_027_580_419,
NotAvailable2 = 4_027_580_420,
UnsupportedVersion = 4_027_580_421,
CiphertextInvalid = 4_027_580_422,
Generic = 4_294_901_760,
AccessDenied = 4_294_901_761,
Cancel = 4_294_901_762,
AccessConflict = 4_294_901_763,
ExcessData = 4_294_901_764,
BadFormat = 4_294_901_765,
BadParameters = 4_294_901_766,
BadState = 4_294_901_767,
ItemNotFound = 4_294_901_768,
NotImplemented = 4_294_901_769,
NotSupported = 4_294_901_770,
NoData = 4_294_901_771,
OutOfMemory = 4_294_901_772,
Busy = 4_294_901_773,
Communication = 4_294_901_774,
Security = 4_294_901_775,
ShortBuffer = 4_294_901_776,
ExternalCancel = 4_294_901_777,
Timeout = 4_294_914_049,
Overflow = 4_294_914_063,
TargetDead = 4_294_914_084,
StorageNoSpace = 4_294_914_113,
MacInvalid = 4_294_914_161,
SignatureInvalid = 4_294_914_162,
TimeNotSet = 4_294_922_240,
TimeNeedsReset = 4_294_922_241,
}
Variants§
CorruptObject = 4_027_580_417
CorruptObject2 = 4_027_580_418
NotAvailable = 4_027_580_419
NotAvailable2 = 4_027_580_420
UnsupportedVersion = 4_027_580_421
CiphertextInvalid = 4_027_580_422
Generic = 4_294_901_760
AccessDenied = 4_294_901_761
Cancel = 4_294_901_762
AccessConflict = 4_294_901_763
ExcessData = 4_294_901_764
BadFormat = 4_294_901_765
BadParameters = 4_294_901_766
BadState = 4_294_901_767
ItemNotFound = 4_294_901_768
NotImplemented = 4_294_901_769
NotSupported = 4_294_901_770
NoData = 4_294_901_771
OutOfMemory = 4_294_901_772
Busy = 4_294_901_773
Communication = 4_294_901_774
Security = 4_294_901_775
ShortBuffer = 4_294_901_776
ExternalCancel = 4_294_901_777
Timeout = 4_294_914_049
Overflow = 4_294_914_063
TargetDead = 4_294_914_084
StorageNoSpace = 4_294_914_113
MacInvalid = 4_294_914_161
SignatureInvalid = 4_294_914_162
TimeNotSet = 4_294_922_240
TimeNeedsReset = 4_294_922_241
Implementations§
Source§impl Error
impl Error
pub fn from_tee_result(result: TEE_Result) -> Option<Self>
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl FromPrimitive for Error
impl FromPrimitive for Error
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreimpl 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)