#[non_exhaustive]#[repr(u8)]pub enum Class {
Secs = 0,
Tcs = 1,
Regular = 2,
VersionArray = 3,
Trimmed = 4,
ShadowStackFirst = 5,
ShadowStackRest = 6,
}
Expand description
The type of an enclave page (see Intel SDM Volume 3D section 34.12.2). Enclave Page Cache Map (EPCM) hols this information for each valid enclave page.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Secs = 0
SGX Enclave Control Structure (SECS)
Tcs = 1
Thread Control Structure (TCS)
Regular = 2
Regularular page
VersionArray = 3
Version Array (VA) page
Trimmed = 4
Removable from a running enclave
ShadowStackFirst = 5
The first page of a shadow stack
ShadowStackRest = 6
A shadow stack page
Implementations§
Trait Implementations§
source§impl PartialEq for Class
impl PartialEq for Class
impl Copy for Class
impl Eq for Class
impl StructuralEq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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