#[repr(u32)]pub enum ProtectJitAccess {
ReadWrite,
ReadExecute,
}
Expand description
Values that can be used with protect_jit_memory
function.
Variants§
ReadWrite
Protect JIT memory with Read+Write permissions.
ReadExecute
Protect JIT memory with Read+Execute permissions.
Trait Implementations§
source§impl Clone for ProtectJitAccess
impl Clone for ProtectJitAccess
source§fn clone(&self) -> ProtectJitAccess
fn clone(&self) -> ProtectJitAccess
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 ProtectJitAccess
impl Debug for ProtectJitAccess
source§impl Hash for ProtectJitAccess
impl Hash for ProtectJitAccess
source§impl Ord for ProtectJitAccess
impl Ord for ProtectJitAccess
source§fn cmp(&self, other: &ProtectJitAccess) -> Ordering
fn cmp(&self, other: &ProtectJitAccess) -> 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<ProtectJitAccess> for ProtectJitAccess
impl PartialEq<ProtectJitAccess> for ProtectJitAccess
source§fn eq(&self, other: &ProtectJitAccess) -> bool
fn eq(&self, other: &ProtectJitAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ProtectJitAccess> for ProtectJitAccess
impl PartialOrd<ProtectJitAccess> for ProtectJitAccess
source§fn partial_cmp(&self, other: &ProtectJitAccess) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtectJitAccess) -> 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 moreimpl Copy for ProtectJitAccess
impl Eq for ProtectJitAccess
impl StructuralEq for ProtectJitAccess
impl StructuralPartialEq for ProtectJitAccess
Auto Trait Implementations§
impl RefUnwindSafe for ProtectJitAccess
impl Send for ProtectJitAccess
impl Sync for ProtectJitAccess
impl Unpin for ProtectJitAccess
impl UnwindSafe for ProtectJitAccess
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