#[repr(u32)]
pub enum SgxStatus {
Show 72 variants Success = 0, Unexpected = 1, InvalidParameter = 2, OutOfMemory = 3, EnclaveLost = 4, InvalidState = 5, UnsupportedFeature = 8, ThreadExit = 9, MemoryMapFailure = 10, InvalidFunction = 4_097, OutOfTcs = 4_099, EnclaveCrashed = 4_102, ECallNotAllowed = 4_103, OCallNotAllowed = 4_104, StackOverRun = 4_105, UndefinedSymbol = 8_192, InvalidEnclave = 8_193, InvalidEcnalveId = 8_194, InvalidSignature = 8_195, NotDebugEnclave = 8_196, OutOfEPC = 8_197, NoDevice = 8_198, MemoryMapConflict = 8_199, InvalidMetadata = 8_201, DeviceBusy = 8_204, InvalidVersion = 8_205, ModeIncompatible = 8_206, EnclaveFileAccess = 8_207, InvalidMisc = 8_208, InvalidLaunchToken = 8_209, MacMismatch = 12_289, InvalidAttribute = 12_290, InvalidCpusvn = 12_291, InvalidIsvsvn = 12_292, InvalidKeyname = 12_293, ServiceUnavailable = 16_385, ServiceTimeout = 16_386, InvalidEpidBlob = 16_387, ServiceInvalidPrivilege = 16_388, EpidMemoryRevoked = 16_389, UpdateNeeded = 16_390, NetworkFailure = 16_391, InvalidAeSession = 16_392, ServiceBusy = 16_394, McNotFound = 16_396, McNoAccess = 16_397, McUsedUp = 16_398, McOverQuota = 16_399, KdfMismatch = 16_401, UnrecognizedPlatform = 16_402, UnsupportedConfig = 16_403, NoPrivilege = 20_482, PclEncrypted = 24_577, PclNotEncrypted = 24_578, PclMacMismatch = 24_579, PclShaMismatch = 24_580, PclGuidMismatch = 24_581, BadStatus = 28_673, NoKeyId = 28_674, NameMismatch = 28_675, NotSgxFile = 28_676, CantOpenRecoveryFile = 28_677, CantWriteRecoveryFile = 28_678, RecoveryNeeded = 28_679, FluchFailed = 28_680, CloseFailed = 28_681, UnsupportedAttKeyid = 32_769, AttKeyCertFailed = 32_770, AttKeyUninitialized = 32_771, InvaliedAttKeyCertData = 32_772, INvaliedPlatfromCert = 32_773, EnclaveCreateInterrupted = 61_441,
}

Variants§

§

Success = 0

§

Unexpected = 1

§

InvalidParameter = 2

§

OutOfMemory = 3

§

EnclaveLost = 4

§

InvalidState = 5

§

UnsupportedFeature = 8

§

ThreadExit = 9

§

MemoryMapFailure = 10

§

InvalidFunction = 4_097

§

OutOfTcs = 4_099

§

EnclaveCrashed = 4_102

§

ECallNotAllowed = 4_103

§

OCallNotAllowed = 4_104

§

StackOverRun = 4_105

§

UndefinedSymbol = 8_192

§

InvalidEnclave = 8_193

§

InvalidEcnalveId = 8_194

§

InvalidSignature = 8_195

§

NotDebugEnclave = 8_196

§

OutOfEPC = 8_197

§

NoDevice = 8_198

§

MemoryMapConflict = 8_199

§

InvalidMetadata = 8_201

§

DeviceBusy = 8_204

§

InvalidVersion = 8_205

§

ModeIncompatible = 8_206

§

EnclaveFileAccess = 8_207

§

InvalidMisc = 8_208

§

InvalidLaunchToken = 8_209

§

MacMismatch = 12_289

§

InvalidAttribute = 12_290

§

InvalidCpusvn = 12_291

§

InvalidIsvsvn = 12_292

§

InvalidKeyname = 12_293

§

ServiceUnavailable = 16_385

§

ServiceTimeout = 16_386

§

InvalidEpidBlob = 16_387

§

ServiceInvalidPrivilege = 16_388

§

EpidMemoryRevoked = 16_389

§

UpdateNeeded = 16_390

§

NetworkFailure = 16_391

§

InvalidAeSession = 16_392

§

ServiceBusy = 16_394

§

McNotFound = 16_396

§

McNoAccess = 16_397

§

McUsedUp = 16_398

§

McOverQuota = 16_399

§

KdfMismatch = 16_401

§

UnrecognizedPlatform = 16_402

§

UnsupportedConfig = 16_403

§

NoPrivilege = 20_482

§

PclEncrypted = 24_577

§

PclNotEncrypted = 24_578

§

PclMacMismatch = 24_579

§

PclShaMismatch = 24_580

§

PclGuidMismatch = 24_581

§

BadStatus = 28_673

§

NoKeyId = 28_674

§

NameMismatch = 28_675

§

NotSgxFile = 28_676

§

CantOpenRecoveryFile = 28_677

§

CantWriteRecoveryFile = 28_678

§

RecoveryNeeded = 28_679

§

FluchFailed = 28_680

§

CloseFailed = 28_681

§

UnsupportedAttKeyid = 32_769

§

AttKeyCertFailed = 32_770

§

AttKeyUninitialized = 32_771

§

InvaliedAttKeyCertData = 32_772

§

INvaliedPlatfromCert = 32_773

§

EnclaveCreateInterrupted = 61_441

Implementations§

source§

impl SgxStatus

source

pub fn is_success(&self) -> bool

source§

impl SgxStatus

source

pub fn __description(&self) -> &'static str

source

pub fn as_str(&self) -> &'static str

Trait Implementations§

source§

impl Clone for SgxStatus

source§

fn clone(&self) -> SgxStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SgxStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SgxStatus

source§

fn default() -> SgxStatus

Returns the “default value” for a type. Read more
source§

impl Display for SgxStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SgxStatus

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<SgxStatus> for u32

source§

fn from(n: SgxStatus) -> u32

Converts to this type from the input type.
source§

impl Ord for SgxStatus

source§

fn cmp(&self, other: &SgxStatus) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SgxStatus

source§

fn eq(&self, other: &SgxStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SgxStatus

source§

fn partial_cmp(&self, other: &SgxStatus) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<u32> for SgxStatus

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(v: u32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl ContiguousMemory for SgxStatus

source§

impl Copy for SgxStatus

source§

impl Eq for SgxStatus

source§

impl StructuralEq for SgxStatus

source§

impl StructuralPartialEq for SgxStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.