#[repr(u32)]
pub enum SgxStatus {
Show 72 variants
Success,
Unexpected,
InvalidParameter,
OutOfMemory,
EnclaveLost,
InvalidState,
UnsupportedFeature,
ThreadExit,
MemoryMapFailure,
InvalidFunction,
OutOfTcs,
EnclaveCrashed,
ECallNotAllowed,
OCallNotAllowed,
StackOverRun,
UndefinedSymbol,
InvalidEnclave,
InvalidEcnalveId,
InvalidSignature,
NotDebugEnclave,
OutOfEPC,
NoDevice,
MemoryMapConflict,
InvalidMetadata,
DeviceBusy,
InvalidVersion,
ModeIncompatible,
EnclaveFileAccess,
InvalidMisc,
InvalidLaunchToken,
MacMismatch,
InvalidAttribute,
InvalidCpusvn,
InvalidIsvsvn,
InvalidKeyname,
ServiceUnavailable,
ServiceTimeout,
InvalidEpidBlob,
ServiceInvalidPrivilege,
EpidMemoryRevoked,
UpdateNeeded,
NetworkFailure,
InvalidAeSession,
ServiceBusy,
McNotFound,
McNoAccess,
McUsedUp,
McOverQuota,
KdfMismatch,
UnrecognizedPlatform,
UnsupportedConfig,
NoPrivilege,
PclEncrypted,
PclNotEncrypted,
PclMacMismatch,
PclShaMismatch,
PclGuidMismatch,
BadStatus,
NoKeyId,
NameMismatch,
NotSgxFile,
CantOpenRecoveryFile,
CantWriteRecoveryFile,
RecoveryNeeded,
FluchFailed,
CloseFailed,
UnsupportedAttKeyid,
AttKeyCertFailed,
AttKeyUninitialized,
InvaliedAttKeyCertData,
INvaliedPlatfromCert,
EnclaveCreateInterrupted,
}
Variants
Success
Unexpected
InvalidParameter
OutOfMemory
EnclaveLost
InvalidState
UnsupportedFeature
ThreadExit
MemoryMapFailure
InvalidFunction
OutOfTcs
EnclaveCrashed
ECallNotAllowed
OCallNotAllowed
StackOverRun
UndefinedSymbol
InvalidEnclave
InvalidEcnalveId
InvalidSignature
NotDebugEnclave
OutOfEPC
NoDevice
MemoryMapConflict
InvalidMetadata
DeviceBusy
InvalidVersion
ModeIncompatible
EnclaveFileAccess
InvalidMisc
InvalidLaunchToken
MacMismatch
InvalidAttribute
InvalidCpusvn
InvalidIsvsvn
InvalidKeyname
ServiceUnavailable
ServiceTimeout
InvalidEpidBlob
ServiceInvalidPrivilege
EpidMemoryRevoked
UpdateNeeded
NetworkFailure
InvalidAeSession
ServiceBusy
McNotFound
McNoAccess
McUsedUp
McOverQuota
KdfMismatch
UnrecognizedPlatform
UnsupportedConfig
NoPrivilege
PclEncrypted
PclNotEncrypted
PclMacMismatch
PclShaMismatch
PclGuidMismatch
BadStatus
NoKeyId
NameMismatch
NotSgxFile
CantOpenRecoveryFile
CantWriteRecoveryFile
RecoveryNeeded
FluchFailed
CloseFailed
UnsupportedAttKeyid
AttKeyCertFailed
AttKeyUninitialized
InvaliedAttKeyCertData
INvaliedPlatfromCert
EnclaveCreateInterrupted
Implementations
sourceimpl SgxStatus
impl SgxStatus
pub fn is_success(&self) -> bool
Trait Implementations
sourceimpl Error for SgxStatus
impl Error for SgxStatus
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl Ord for SgxStatus
impl Ord for SgxStatus
sourceimpl PartialOrd<SgxStatus> for SgxStatus
impl PartialOrd<SgxStatus> for SgxStatus
sourcefn partial_cmp(&self, other: &SgxStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &SgxStatus) -> Option<Ordering>
1.0.0const fn lt(&self, other: &Rhs) -> bool
const fn lt(&self, other: &Rhs) -> bool
1.0.0const fn le(&self, other: &Rhs) -> bool
const 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 more1.0.0const fn gt(&self, other: &Rhs) -> bool
const fn gt(&self, other: &Rhs) -> bool
impl ContiguousMemory for SgxStatus
impl Copy for SgxStatus
impl Eq for SgxStatus
impl StructuralEq for SgxStatus
impl StructuralPartialEq for SgxStatus
Auto Trait Implementations
impl RefUnwindSafe for SgxStatus
impl Send for SgxStatus
impl Sync for SgxStatus
impl Unpin for SgxStatus
impl UnwindSafe for SgxStatus
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more