[]Struct sunrise_libkern::process::ProcInfoFlags

pub struct ProcInfoFlags(pub u32);

Miscelaneous flags.

Implementations

impl ProcInfoFlags

pub fn is_64bit(&self) -> bool

64-bit instructions support.

pub fn set_64bit(&mut self, value: bool)

64-bit instructions support.

pub fn address_space_type(&self) -> ProcInfoAddrSpace

Address space width of the process.

pub fn set_address_space_type(&mut self, value: ProcInfoAddrSpace)

Address space width of the process.

pub fn is_debug(&self) -> bool

Whether to signal various conditions (such as exceptions).

pub fn set_debug(&mut self, value: bool)

Whether to signal various conditions (such as exceptions).

pub fn is_aslr(&self) -> bool

Enable randomization of the various memory regions (heap, stack, etc...).

pub fn set_aslr(&mut self, value: bool)

Enable randomization of the various memory regions (heap, stack, etc...).

pub fn is_application(&self) -> bool

Process is an application. There can only be one application running at any given time.

pub fn set_application(&mut self, value: bool)

Process is an application. There can only be one application running at any given time.

pub fn use_secure_memory(&self) -> bool

unknown.

pub fn pool_partition(&self) -> PoolPartition

The memory pool to use for this process.

pub fn set_pool_partition(&mut self, value: PoolPartition)

The memory pool to use for this process.

pub fn optimize_memory_allocation(&self) -> bool

unknown

impl ProcInfoFlags[src]

pub fn check(&self) -> Result<(), KernelError>[src]

Checks that the ProcInfoFlags doesn't contain any unknown bits.

Trait Implementations

impl<T> BitRange<T> for ProcInfoFlags where
    u32: BitRange<T>, 

impl Debug for ProcInfoFlags

Auto Trait Implementations

impl Send for ProcInfoFlags

impl Sync for ProcInfoFlags

impl Unpin for ProcInfoFlags

Blanket Implementations

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

impl<T> Bit for T where
    T: BitRange<u8>, 

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.