Enum sgx_types::types::ProtectPerm
source · [−]#[repr(u8)]
pub enum ProtectPerm {
None,
Read,
ReadWrite,
ReadExec,
ReadWriteExec,
}
Variants
None
Read
ReadWrite
ReadExec
ReadWriteExec
Implementations
Trait Implementations
sourceimpl Clone for ProtectPerm
impl Clone for ProtectPerm
sourcefn clone(&self) -> ProtectPerm
fn clone(&self) -> ProtectPerm
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProtectPerm
impl Debug for ProtectPerm
sourceimpl Default for ProtectPerm
impl Default for ProtectPerm
sourcefn default() -> ProtectPerm
fn default() -> ProtectPerm
Returns the “default value” for a type. Read more
sourceimpl From<ProtectPerm> for u8
impl From<ProtectPerm> for u8
sourcefn from(n: ProtectPerm) -> u8
fn from(n: ProtectPerm) -> u8
Converts to this type from the input type.
sourceimpl Ord for ProtectPerm
impl Ord for ProtectPerm
sourcefn cmp(&self, other: &ProtectPerm) -> Ordering
fn cmp(&self, other: &ProtectPerm) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ProtectPerm> for ProtectPerm
impl PartialEq<ProtectPerm> for ProtectPerm
sourcefn eq(&self, other: &ProtectPerm) -> bool
fn eq(&self, other: &ProtectPerm) -> bool
sourceimpl PartialOrd<ProtectPerm> for ProtectPerm
impl PartialOrd<ProtectPerm> for ProtectPerm
sourcefn partial_cmp(&self, other: &ProtectPerm) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtectPerm) -> Option<Ordering>
1.0.0 · sourceconst 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 moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more