Struct nix::sys::mman::MlockAllFlags [−]
pub struct MlockAllFlags { /* fields omitted */ }Flags for mlockall.
Methods
impl MlockAllFlags
impl MlockAllFlagspub const MCL_CURRENT: MlockAllFlags
MCL_CURRENT: MlockAllFlags = MlockAllFlags{bits: libc::MCL_CURRENT,}
Lock pages that are currently mapped into the address space of the process.
pub const MCL_FUTURE: MlockAllFlags
MCL_FUTURE: MlockAllFlags = MlockAllFlags{bits: libc::MCL_FUTURE,}
Lock pages which will become mapped into the address space of the process in the future.
pub fn empty() -> MlockAllFlags
pub fn empty() -> MlockAllFlagsReturns an empty set of flags.
pub fn all() -> MlockAllFlags
pub fn all() -> MlockAllFlagsReturns the set containing all flags.
pub fn bits(&self) -> c_int
pub fn bits(&self) -> c_intReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_int) -> Option<MlockAllFlags>
pub fn from_bits(bits: c_int) -> Option<MlockAllFlags>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_int) -> MlockAllFlags
pub fn from_bits_truncate(bits: c_int) -> MlockAllFlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: MlockAllFlags) -> bool
pub fn intersects(&self, other: MlockAllFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: MlockAllFlags) -> bool
pub fn contains(&self, other: MlockAllFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: MlockAllFlags)
pub fn insert(&mut self, other: MlockAllFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: MlockAllFlags)
pub fn remove(&mut self, other: MlockAllFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: MlockAllFlags)
pub fn toggle(&mut self, other: MlockAllFlags)Toggles the specified flags in-place.
pub fn set(&mut self, other: MlockAllFlags, value: bool)
pub fn set(&mut self, other: MlockAllFlags, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for MlockAllFlags
impl Copy for MlockAllFlagsimpl PartialEq for MlockAllFlags
impl PartialEq for MlockAllFlagsfn eq(&self, other: &MlockAllFlags) -> bool
fn eq(&self, other: &MlockAllFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MlockAllFlags) -> bool
fn ne(&self, other: &MlockAllFlags) -> boolThis method tests for !=.
impl Eq for MlockAllFlags
impl Eq for MlockAllFlagsimpl Clone for MlockAllFlags
impl Clone for MlockAllFlagsfn clone(&self) -> MlockAllFlags
fn clone(&self) -> MlockAllFlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for MlockAllFlags
impl PartialOrd for MlockAllFlagsfn partial_cmp(&self, other: &MlockAllFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &MlockAllFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &MlockAllFlags) -> bool
fn lt(&self, other: &MlockAllFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &MlockAllFlags) -> bool
fn le(&self, other: &MlockAllFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &MlockAllFlags) -> bool
fn gt(&self, other: &MlockAllFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &MlockAllFlags) -> bool
fn ge(&self, other: &MlockAllFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for MlockAllFlags
impl Ord for MlockAllFlagsfn cmp(&self, other: &MlockAllFlags) -> Ordering
fn cmp(&self, other: &MlockAllFlags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for MlockAllFlags
impl Hash for MlockAllFlagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for MlockAllFlags
impl Debug for MlockAllFlagsimpl Binary for MlockAllFlags
impl Binary for MlockAllFlagsimpl Octal for MlockAllFlags
impl Octal for MlockAllFlagsimpl LowerHex for MlockAllFlags
impl LowerHex for MlockAllFlagsimpl UpperHex for MlockAllFlags
impl UpperHex for MlockAllFlagsimpl BitOr for MlockAllFlags
impl BitOr for MlockAllFlagstype Output = MlockAllFlags
The resulting type after applying the | operator.
fn bitor(self, other: MlockAllFlags) -> MlockAllFlags
fn bitor(self, other: MlockAllFlags) -> MlockAllFlagsReturns the union of the two sets of flags.
impl BitOrAssign for MlockAllFlags
impl BitOrAssign for MlockAllFlagsfn bitor_assign(&mut self, other: MlockAllFlags)
fn bitor_assign(&mut self, other: MlockAllFlags)Adds the set of flags.
impl BitXor for MlockAllFlags
impl BitXor for MlockAllFlagstype Output = MlockAllFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: MlockAllFlags) -> MlockAllFlags
fn bitxor(self, other: MlockAllFlags) -> MlockAllFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for MlockAllFlags
impl BitXorAssign for MlockAllFlagsfn bitxor_assign(&mut self, other: MlockAllFlags)
fn bitxor_assign(&mut self, other: MlockAllFlags)Toggles the set of flags.
impl BitAnd for MlockAllFlags
impl BitAnd for MlockAllFlagstype Output = MlockAllFlags
The resulting type after applying the & operator.
fn bitand(self, other: MlockAllFlags) -> MlockAllFlags
fn bitand(self, other: MlockAllFlags) -> MlockAllFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for MlockAllFlags
impl BitAndAssign for MlockAllFlagsfn bitand_assign(&mut self, other: MlockAllFlags)
fn bitand_assign(&mut self, other: MlockAllFlags)Disables all flags disabled in the set.
impl Sub for MlockAllFlags
impl Sub for MlockAllFlagstype Output = MlockAllFlags
The resulting type after applying the - operator.
fn sub(self, other: MlockAllFlags) -> MlockAllFlags
fn sub(self, other: MlockAllFlags) -> MlockAllFlagsReturns the set difference of the two sets of flags.
impl SubAssign for MlockAllFlags
impl SubAssign for MlockAllFlagsfn sub_assign(&mut self, other: MlockAllFlags)
fn sub_assign(&mut self, other: MlockAllFlags)Disables all flags enabled in the set.
impl Not for MlockAllFlags
impl Not for MlockAllFlagstype Output = MlockAllFlags
The resulting type after applying the ! operator.
fn not(self) -> MlockAllFlags
fn not(self) -> MlockAllFlagsReturns the complement of this set of flags.
impl Extend<MlockAllFlags> for MlockAllFlags
impl Extend<MlockAllFlags> for MlockAllFlagsfn extend<T: IntoIterator<Item = MlockAllFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = MlockAllFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<MlockAllFlags> for MlockAllFlags
impl FromIterator<MlockAllFlags> for MlockAllFlagsfn from_iter<T: IntoIterator<Item = MlockAllFlags>>(
iterator: T
) -> MlockAllFlags
fn from_iter<T: IntoIterator<Item = MlockAllFlags>>(
iterator: T
) -> MlockAllFlagsCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for MlockAllFlags
impl Send for MlockAllFlagsimpl Sync for MlockAllFlags
impl Sync for MlockAllFlags