pub enum ProtectionStrategy {
MemProtected,
MemNonProtected,
}Expand description
Memory protection strategy for the buffer.
Variants§
MemProtected
mlock + mprotect toggling (full protection)
MemNonProtected
mlock only (no mprotect toggling)
Trait Implementations§
Source§impl Clone for ProtectionStrategy
impl Clone for ProtectionStrategy
Source§fn clone(&self) -> ProtectionStrategy
fn clone(&self) -> ProtectionStrategy
Returns a duplicate 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 ProtectionStrategy
impl Debug for ProtectionStrategy
Source§impl PartialEq for ProtectionStrategy
impl PartialEq for ProtectionStrategy
impl Copy for ProtectionStrategy
impl Eq for ProtectionStrategy
impl StructuralPartialEq for ProtectionStrategy
Auto Trait Implementations§
impl Freeze for ProtectionStrategy
impl RefUnwindSafe for ProtectionStrategy
impl Send for ProtectionStrategy
impl Sync for ProtectionStrategy
impl Unpin for ProtectionStrategy
impl UnwindSafe for ProtectionStrategy
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