Enum sgx_types::types::ProtectPerm
source · [−]#[repr(u8)]
pub enum ProtectPerm {
None,
Read,
ReadWrite,
ReadExec,
ReadWriteExec,
}
Variants
None
Read
ReadWrite
ReadExec
ReadWriteExec
Implementations
sourceimpl ProtectPerm
impl ProtectPerm
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.0const 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
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.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
sourceimpl 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
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