pub struct MpolFlags(/* private fields */);Expand description
Optional mode flags for set_mempolicy(2).
OR’d into the mode argument. See MPOL_F_* in
include/uapi/linux/mempolicy.h.
Implementations§
Source§impl MpolFlags
impl MpolFlags
Sourcepub const STATIC_NODES: Self
pub const STATIC_NODES: Self
MPOL_F_STATIC_NODES (1 << 15): nodemask is absolute, not
remapped when the task’s cpuset changes.
Sourcepub const RELATIVE_NODES: Self
pub const RELATIVE_NODES: Self
MPOL_F_RELATIVE_NODES (1 << 14): nodemask is relative to
the task’s current cpuset.
Sourcepub const NUMA_BALANCING: Self
pub const NUMA_BALANCING: Self
MPOL_F_NUMA_BALANCING (1 << 13): enable NUMA balancing
optimization for this policy.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Whether every bit in other is set in self.
Set-theoretic, not syntactic: contains(NONE) returns true
for any self (vacuous truth — the empty set is a subset of
everything). Callers who want “has a non-empty intersection
with other” must compare self.bits() & other.bits() != 0
explicitly; using contains for that query silently returns
true when the operand is NONE regardless of self.
Trait Implementations§
Source§impl BitOr for MpolFlags
impl BitOr for MpolFlags
Source§fn bitor(self, rhs: Self) -> Self
fn bitor(self, rhs: Self) -> Self
Delegates to MpolFlags::union so the bitwise-OR logic
lives in one place. union is const fn (usable in
const contexts like const initializers); BitOr::bitor
cannot currently be const on stable, so keeping both
entry points is necessary, but they must never diverge.
Source§impl<'de> Deserialize<'de> for MpolFlags
impl<'de> Deserialize<'de> for MpolFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for MpolFlags
impl Eq for MpolFlags
impl StructuralPartialEq for MpolFlags
Auto Trait Implementations§
impl Freeze for MpolFlags
impl RefUnwindSafe for MpolFlags
impl Send for MpolFlags
impl Sync for MpolFlags
impl Unpin for MpolFlags
impl UnwindSafe for MpolFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more