Struct procfs::CoredumpFlags [−]
pub struct CoredumpFlags { /* fields omitted */ }
Methods
impl CoredumpFlags
impl CoredumpFlags
pub const ANONYMOUS_PRIVATE_MAPPINGS: CoredumpFlags
ANONYMOUS_PRIVATE_MAPPINGS: CoredumpFlags = CoredumpFlags{bits: 1,}
pub const ANONYMOUS_SHARED_MAPPINGS: CoredumpFlags
ANONYMOUS_SHARED_MAPPINGS: CoredumpFlags = CoredumpFlags{bits: 2,}
pub const FILEBACKED_PRIVATE_MAPPINGS: CoredumpFlags
FILEBACKED_PRIVATE_MAPPINGS: CoredumpFlags = CoredumpFlags{bits: 4,}
pub const FILEBACKED_SHARED_MAPPINGS: CoredumpFlags
FILEBACKED_SHARED_MAPPINGS: CoredumpFlags = CoredumpFlags{bits: 8,}
pub const ELF_HEADERS: CoredumpFlags
ELF_HEADERS: CoredumpFlags = CoredumpFlags{bits: 16,}
pub const PROVATE_HUGEPAGES: CoredumpFlags
PROVATE_HUGEPAGES: CoredumpFlags = CoredumpFlags{bits: 32,}
pub const SHARED_HUGEPAGES: CoredumpFlags
SHARED_HUGEPAGES: CoredumpFlags = CoredumpFlags{bits: 64,}
pub const PRIVATE_DAX_PAGES: CoredumpFlags
PRIVATE_DAX_PAGES: CoredumpFlags = CoredumpFlags{bits: 128,}
pub const SHARED_DAX_PAGES: CoredumpFlags
SHARED_DAX_PAGES: CoredumpFlags = CoredumpFlags{bits: 256,}
pub fn empty() -> CoredumpFlags
pub fn empty() -> CoredumpFlags
Returns an empty set of flags.
pub fn all() -> CoredumpFlags
pub fn all() -> CoredumpFlags
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<CoredumpFlags>
pub fn from_bits(bits: u32) -> Option<CoredumpFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> CoredumpFlags
pub fn from_bits_truncate(bits: u32) -> CoredumpFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: CoredumpFlags) -> bool
pub fn intersects(&self, other: CoredumpFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: CoredumpFlags) -> bool
pub fn contains(&self, other: CoredumpFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: CoredumpFlags)
pub fn insert(&mut self, other: CoredumpFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: CoredumpFlags)
pub fn remove(&mut self, other: CoredumpFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: CoredumpFlags)
pub fn toggle(&mut self, other: CoredumpFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: CoredumpFlags, value: bool)
pub fn set(&mut self, other: CoredumpFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for CoredumpFlags
impl Copy for CoredumpFlags
impl PartialEq for CoredumpFlags
impl PartialEq for CoredumpFlags
fn eq(&self, other: &CoredumpFlags) -> bool
fn eq(&self, other: &CoredumpFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CoredumpFlags) -> bool
fn ne(&self, other: &CoredumpFlags) -> bool
This method tests for !=
.
impl Eq for CoredumpFlags
impl Eq for CoredumpFlags
impl Clone for CoredumpFlags
impl Clone for CoredumpFlags
fn clone(&self) -> CoredumpFlags
fn clone(&self) -> CoredumpFlags
Returns 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 CoredumpFlags
impl PartialOrd for CoredumpFlags
fn partial_cmp(&self, other: &CoredumpFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &CoredumpFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &CoredumpFlags) -> bool
fn lt(&self, other: &CoredumpFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &CoredumpFlags) -> bool
fn le(&self, other: &CoredumpFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &CoredumpFlags) -> bool
fn gt(&self, other: &CoredumpFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &CoredumpFlags) -> bool
fn ge(&self, other: &CoredumpFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for CoredumpFlags
impl Ord for CoredumpFlags
fn cmp(&self, other: &CoredumpFlags) -> Ordering
fn cmp(&self, other: &CoredumpFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for CoredumpFlags
impl Hash for CoredumpFlags
fn 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 CoredumpFlags
impl Debug for CoredumpFlags
impl Binary for CoredumpFlags
impl Binary for CoredumpFlags
impl Octal for CoredumpFlags
impl Octal for CoredumpFlags
impl LowerHex for CoredumpFlags
impl LowerHex for CoredumpFlags
impl UpperHex for CoredumpFlags
impl UpperHex for CoredumpFlags
impl BitOr for CoredumpFlags
impl BitOr for CoredumpFlags
type Output = CoredumpFlags
The resulting type after applying the |
operator.
fn bitor(self, other: CoredumpFlags) -> CoredumpFlags
fn bitor(self, other: CoredumpFlags) -> CoredumpFlags
Returns the union of the two sets of flags.
impl BitOrAssign for CoredumpFlags
impl BitOrAssign for CoredumpFlags
fn bitor_assign(&mut self, other: CoredumpFlags)
fn bitor_assign(&mut self, other: CoredumpFlags)
Adds the set of flags.
impl BitXor for CoredumpFlags
impl BitXor for CoredumpFlags
type Output = CoredumpFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: CoredumpFlags) -> CoredumpFlags
fn bitxor(self, other: CoredumpFlags) -> CoredumpFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for CoredumpFlags
impl BitXorAssign for CoredumpFlags
fn bitxor_assign(&mut self, other: CoredumpFlags)
fn bitxor_assign(&mut self, other: CoredumpFlags)
Toggles the set of flags.
impl BitAnd for CoredumpFlags
impl BitAnd for CoredumpFlags
type Output = CoredumpFlags
The resulting type after applying the &
operator.
fn bitand(self, other: CoredumpFlags) -> CoredumpFlags
fn bitand(self, other: CoredumpFlags) -> CoredumpFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for CoredumpFlags
impl BitAndAssign for CoredumpFlags
fn bitand_assign(&mut self, other: CoredumpFlags)
fn bitand_assign(&mut self, other: CoredumpFlags)
Disables all flags disabled in the set.
impl Sub for CoredumpFlags
impl Sub for CoredumpFlags
type Output = CoredumpFlags
The resulting type after applying the -
operator.
fn sub(self, other: CoredumpFlags) -> CoredumpFlags
fn sub(self, other: CoredumpFlags) -> CoredumpFlags
Returns the set difference of the two sets of flags.
impl SubAssign for CoredumpFlags
impl SubAssign for CoredumpFlags
fn sub_assign(&mut self, other: CoredumpFlags)
fn sub_assign(&mut self, other: CoredumpFlags)
Disables all flags enabled in the set.
impl Not for CoredumpFlags
impl Not for CoredumpFlags
type Output = CoredumpFlags
The resulting type after applying the !
operator.
fn not(self) -> CoredumpFlags
fn not(self) -> CoredumpFlags
Returns the complement of this set of flags.
impl Extend<CoredumpFlags> for CoredumpFlags
impl Extend<CoredumpFlags> for CoredumpFlags
fn extend<T: IntoIterator<Item = CoredumpFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = CoredumpFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<CoredumpFlags> for CoredumpFlags
impl FromIterator<CoredumpFlags> for CoredumpFlags
fn from_iter<T: IntoIterator<Item = CoredumpFlags>>(
iterator: T
) -> CoredumpFlags
fn from_iter<T: IntoIterator<Item = CoredumpFlags>>(
iterator: T
) -> CoredumpFlags
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for CoredumpFlags
impl Send for CoredumpFlags
impl Sync for CoredumpFlags
impl Sync for CoredumpFlags