[−][src]Enum memory_manager::primitives::Protection
Memory protection flags.
These can be combined together using the |
operator:
use memory_manager::allocate::Protection; let protection = Protection::Read | Protection::Write;
If no access should be performed to the memory, use Protection::NONE
:
use memory_manager::allocate::Protection; let protection = Protection::NONE;
Note that not all combinations are supported on Windows: Write
will always imply Read
.
Variants
Pages may be read.
Pages may be written.
Pages may be executed.
Implementations
impl Protection
[src]
pub const NONE: BitFlags<Protection>
[src]
Pages may not be accessed.
Trait Implementations
impl BitAnd<Protection> for Protection
[src]
type Output = BitFlags<Protection>
The resulting type after applying the &
operator.
fn bitand(self, other: Self) -> Self::Output
[src]
impl BitOr<Protection> for Protection
[src]
type Output = BitFlags<Protection>
The resulting type after applying the |
operator.
fn bitor(self, other: Self) -> Self::Output
[src]
impl BitXor<Protection> for Protection
[src]
type Output = BitFlags<Protection>
The resulting type after applying the ^
operator.
fn bitxor(self, other: Self) -> Self::Output
[src]
impl Clone for Protection
[src]
fn clone(&self) -> Protection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Protection
[src]
impl Debug for Protection
[src]
impl Eq for Protection
[src]
impl Not for Protection
[src]
type Output = BitFlags<Protection>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl PartialEq<Protection> for Protection
[src]
fn eq(&self, other: &Protection) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl RawBitFlags for Protection
[src]
impl RawBitFlags for Protection
[src]
type Type = u32
The underlying integer type.
fn all_bits() -> Self::Type
[src]
fn bits(self) -> Self::Type
[src]
fn flag_list() -> &'static [Self]
[src]
fn bitflags_type_name() -> &'static str
[src]
impl StructuralEq for Protection
[src]
impl StructuralPartialEq for Protection
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,