Enum sgx_types::types::ProtectPerm
source · #[repr(u8)]pub enum ProtectPerm {
None = 0,
Read = 1,
ReadWrite = 3,
ReadExec = 5,
ReadWriteExec = 7,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ProtectPerm
impl Clone for ProtectPerm
source§fn clone(&self) -> ProtectPerm
fn clone(&self) -> ProtectPerm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProtectPerm
impl Debug for ProtectPerm
source§impl Default for ProtectPerm
impl Default for ProtectPerm
source§fn default() -> ProtectPerm
fn default() -> ProtectPerm
Returns the “default value” for a type. Read more
source§impl From<ProtectPerm> for u8
impl From<ProtectPerm> for u8
source§fn from(n: ProtectPerm) -> u8
fn from(n: ProtectPerm) -> u8
Converts to this type from the input type.
source§impl Ord for ProtectPerm
impl Ord for ProtectPerm
source§fn cmp(&self, other: &ProtectPerm) -> Ordering
fn cmp(&self, other: &ProtectPerm) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ProtectPerm
impl PartialEq for ProtectPerm
source§fn eq(&self, other: &ProtectPerm) -> bool
fn eq(&self, other: &ProtectPerm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProtectPerm
impl PartialOrd for ProtectPerm
source§fn partial_cmp(&self, other: &ProtectPerm) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtectPerm) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl TryFrom<u8> for ProtectPerm
impl TryFrom<u8> for ProtectPerm
impl ContiguousMemory for ProtectPerm
impl Copy for ProtectPerm
impl Eq for ProtectPerm
impl StructuralEq for ProtectPerm
impl StructuralPartialEq for ProtectPerm
Auto Trait Implementations§
impl RefUnwindSafe for ProtectPerm
impl Send for ProtectPerm
impl Sync for ProtectPerm
impl Unpin for ProtectPerm
impl UnwindSafe for ProtectPerm
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