[][src]Enum memory_manager::primitives::Protection

#[repr(u32)]pub enum Protection {
    Read,
    Write,
    Exec,
}

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

Read

Pages may be read.

Write

Pages may be written.

Exec

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.

impl BitOr<Protection> for Protection[src]

type Output = BitFlags<Protection>

The resulting type after applying the | operator.

impl BitXor<Protection> for Protection[src]

type Output = BitFlags<Protection>

The resulting type after applying the ^ operator.

impl Clone for Protection[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.

impl PartialEq<Protection> for Protection[src]

impl RawBitFlags for Protection[src]

impl RawBitFlags for Protection[src]

type Type = u32

The underlying integer type.

impl StructuralEq for Protection[src]

impl StructuralPartialEq for Protection[src]

Auto Trait Implementations

impl Send for Protection

impl Sync for Protection

impl Unpin for Protection

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.