Struct zircon_object::vm::VmoInfoFlags[][src]

pub struct VmoInfoFlags { /* fields omitted */ }

Values used by ZX_INFO_PROCESS_VMOS.

Implementations

impl VmoInfoFlags[src]

pub const TYPE_PHYSICAL: VmoInfoFlags[src]

The VMO points to a physical address range, and does not consume memory. Typically used to access memory-mapped hardware. Mutually exclusive with TYPE_PAGED.

pub const TYPE_PAGED: VmoInfoFlags[src]

The VMO is backed by RAM, consuming memory. Mutually exclusive with TYPE_PHYSICAL.

pub const RESIZABLE: VmoInfoFlags[src]

The VMO is resizable.

pub const IS_COW_CLONE: VmoInfoFlags[src]

The VMO is a child, and is a copy-on-write clone.

pub const VIA_HANDLE: VmoInfoFlags[src]

When reading a list of VMOs pointed to by a process, indicates that the process has a handle to the VMO, which isn’t necessarily mapped.

pub const VIA_MAPPING: VmoInfoFlags[src]

When reading a list of VMOs pointed to by a process, indicates that the process maps the VMO into a VMAR, but doesn’t necessarily have a handle to the VMO.

pub const PAGER_BACKED: VmoInfoFlags[src]

The VMO is a pager owned VMO created by zx_pager_create_vmo or is a clone of a VMO with this flag set. Will only be set on VMOs with the ZX_INFO_VMO_TYPE_PAGED flag set.

pub const CONTIGUOUS: VmoInfoFlags[src]

The VMO is contiguous.

pub const fn empty() -> VmoInfoFlags[src]

Returns an empty set of flags

pub const fn all() -> VmoInfoFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<VmoInfoFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> VmoInfoFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> VmoInfoFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: VmoInfoFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: VmoInfoFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: VmoInfoFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: VmoInfoFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: VmoInfoFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: VmoInfoFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for VmoInfoFlags[src]

impl BitAnd<VmoInfoFlags> for VmoInfoFlags[src]

type Output = VmoInfoFlags

The resulting type after applying the & operator.

fn bitand(self, other: VmoInfoFlags) -> VmoInfoFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<VmoInfoFlags> for VmoInfoFlags[src]

fn bitand_assign(&mut self, other: VmoInfoFlags)[src]

Disables all flags disabled in the set.

impl BitOr<VmoInfoFlags> for VmoInfoFlags[src]

type Output = VmoInfoFlags

The resulting type after applying the | operator.

fn bitor(self, other: VmoInfoFlags) -> VmoInfoFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<VmoInfoFlags> for VmoInfoFlags[src]

fn bitor_assign(&mut self, other: VmoInfoFlags)[src]

Adds the set of flags.

impl BitXor<VmoInfoFlags> for VmoInfoFlags[src]

type Output = VmoInfoFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: VmoInfoFlags) -> VmoInfoFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<VmoInfoFlags> for VmoInfoFlags[src]

fn bitxor_assign(&mut self, other: VmoInfoFlags)[src]

Toggles the set of flags.

impl Clone for VmoInfoFlags[src]

impl Copy for VmoInfoFlags[src]

impl Debug for VmoInfoFlags[src]

impl Default for VmoInfoFlags[src]

impl Eq for VmoInfoFlags[src]

impl Extend<VmoInfoFlags> for VmoInfoFlags[src]

impl FromIterator<VmoInfoFlags> for VmoInfoFlags[src]

impl Hash for VmoInfoFlags[src]

impl LowerHex for VmoInfoFlags[src]

impl Not for VmoInfoFlags[src]

type Output = VmoInfoFlags

The resulting type after applying the ! operator.

fn not(self) -> VmoInfoFlags[src]

Returns the complement of this set of flags.

impl Octal for VmoInfoFlags[src]

impl Ord for VmoInfoFlags[src]

impl PartialEq<VmoInfoFlags> for VmoInfoFlags[src]

impl PartialOrd<VmoInfoFlags> for VmoInfoFlags[src]

impl StructuralEq for VmoInfoFlags[src]

impl StructuralPartialEq for VmoInfoFlags[src]

impl Sub<VmoInfoFlags> for VmoInfoFlags[src]

type Output = VmoInfoFlags

The resulting type after applying the - operator.

fn sub(self, other: VmoInfoFlags) -> VmoInfoFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<VmoInfoFlags> for VmoInfoFlags[src]

fn sub_assign(&mut self, other: VmoInfoFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for VmoInfoFlags[src]

Auto Trait Implementations

impl RefUnwindSafe for VmoInfoFlags

impl Send for VmoInfoFlags

impl Sync for VmoInfoFlags

impl Unpin for VmoInfoFlags

impl UnwindSafe for VmoInfoFlags

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> CallHasher for T where
    T: Hash
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.