Struct numa_gpu::runtime::linux_wrapper::MemBindFlags
source · [−]pub struct MemBindFlags { /* private fields */ }
Expand description
Flags for mbind
See numaif.h
for definition.
Implementations
sourceimpl MemBindFlags
impl MemBindFlags
sourcepub const DEFAULT: MemBindFlags
pub const DEFAULT: MemBindFlags
Default
sourcepub const STRICT: MemBindFlags
pub const STRICT: MemBindFlags
Verify existing pages in the mapping
sourcepub const MOVE: MemBindFlags
pub const MOVE: MemBindFlags
Move pages owned by this process to conform to mapping
sourcepub const MOVE_ALL: MemBindFlags
pub const MOVE_ALL: MemBindFlags
Move every page to conform to mapping
sourcepub const fn empty() -> MemBindFlags
pub const fn empty() -> MemBindFlags
Returns an empty set of flags
sourcepub const fn all() -> MemBindFlags
pub const fn all() -> MemBindFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: c_uint) -> Option<MemBindFlags>
pub fn from_bits(bits: c_uint) -> Option<MemBindFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: c_uint) -> MemBindFlags
pub const fn from_bits_truncate(bits: c_uint) -> MemBindFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: c_uint) -> MemBindFlags
pub const unsafe fn from_bits_unchecked(bits: c_uint) -> MemBindFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: MemBindFlags) -> bool
pub const fn intersects(&self, other: MemBindFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: MemBindFlags) -> bool
pub const fn contains(&self, other: MemBindFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: MemBindFlags)
pub fn insert(&mut self, other: MemBindFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: MemBindFlags)
pub fn remove(&mut self, other: MemBindFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: MemBindFlags)
pub fn toggle(&mut self, other: MemBindFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: MemBindFlags, value: bool)
pub fn set(&mut self, other: MemBindFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for MemBindFlags
impl Binary for MemBindFlags
sourceimpl BitAnd<MemBindFlags> for MemBindFlags
impl BitAnd<MemBindFlags> for MemBindFlags
sourcefn bitand(self, other: MemBindFlags) -> MemBindFlags
fn bitand(self, other: MemBindFlags) -> MemBindFlags
Returns the intersection between the two sets of flags.
type Output = MemBindFlags
type Output = MemBindFlags
The resulting type after applying the &
operator.
sourceimpl BitAndAssign<MemBindFlags> for MemBindFlags
impl BitAndAssign<MemBindFlags> for MemBindFlags
sourcefn bitand_assign(&mut self, other: MemBindFlags)
fn bitand_assign(&mut self, other: MemBindFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<MemBindFlags> for MemBindFlags
impl BitOr<MemBindFlags> for MemBindFlags
sourcefn bitor(self, other: MemBindFlags) -> MemBindFlags
fn bitor(self, other: MemBindFlags) -> MemBindFlags
Returns the union of the two sets of flags.
type Output = MemBindFlags
type Output = MemBindFlags
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<MemBindFlags> for MemBindFlags
impl BitOrAssign<MemBindFlags> for MemBindFlags
sourcefn bitor_assign(&mut self, other: MemBindFlags)
fn bitor_assign(&mut self, other: MemBindFlags)
Adds the set of flags.
sourceimpl BitXor<MemBindFlags> for MemBindFlags
impl BitXor<MemBindFlags> for MemBindFlags
sourcefn bitxor(self, other: MemBindFlags) -> MemBindFlags
fn bitxor(self, other: MemBindFlags) -> MemBindFlags
Returns the left flags, but with all the right flags toggled.
type Output = MemBindFlags
type Output = MemBindFlags
The resulting type after applying the ^
operator.
sourceimpl BitXorAssign<MemBindFlags> for MemBindFlags
impl BitXorAssign<MemBindFlags> for MemBindFlags
sourcefn bitxor_assign(&mut self, other: MemBindFlags)
fn bitxor_assign(&mut self, other: MemBindFlags)
Toggles the set of flags.
sourceimpl Clone for MemBindFlags
impl Clone for MemBindFlags
sourcefn clone(&self) -> MemBindFlags
fn clone(&self) -> MemBindFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemBindFlags
impl Debug for MemBindFlags
sourceimpl Extend<MemBindFlags> for MemBindFlags
impl Extend<MemBindFlags> for MemBindFlags
sourcefn extend<T: IntoIterator<Item = MemBindFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = MemBindFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<MemBindFlags> for MemBindFlags
impl FromIterator<MemBindFlags> for MemBindFlags
sourcefn from_iter<T: IntoIterator<Item = MemBindFlags>>(iterator: T) -> MemBindFlags
fn from_iter<T: IntoIterator<Item = MemBindFlags>>(iterator: T) -> MemBindFlags
Creates a value from an iterator. Read more
sourceimpl Hash for MemBindFlags
impl Hash for MemBindFlags
sourceimpl LowerHex for MemBindFlags
impl LowerHex for MemBindFlags
sourceimpl Not for MemBindFlags
impl Not for MemBindFlags
sourcefn not(self) -> MemBindFlags
fn not(self) -> MemBindFlags
Returns the complement of this set of flags.
type Output = MemBindFlags
type Output = MemBindFlags
The resulting type after applying the !
operator.
sourceimpl Octal for MemBindFlags
impl Octal for MemBindFlags
sourceimpl Ord for MemBindFlags
impl Ord for MemBindFlags
sourceimpl PartialEq<MemBindFlags> for MemBindFlags
impl PartialEq<MemBindFlags> for MemBindFlags
sourcefn eq(&self, other: &MemBindFlags) -> bool
fn eq(&self, other: &MemBindFlags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MemBindFlags) -> bool
fn ne(&self, other: &MemBindFlags) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MemBindFlags> for MemBindFlags
impl PartialOrd<MemBindFlags> for MemBindFlags
sourcefn partial_cmp(&self, other: &MemBindFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &MemBindFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Sub<MemBindFlags> for MemBindFlags
impl Sub<MemBindFlags> for MemBindFlags
sourcefn sub(self, other: MemBindFlags) -> MemBindFlags
fn sub(self, other: MemBindFlags) -> MemBindFlags
Returns the set difference of the two sets of flags.
type Output = MemBindFlags
type Output = MemBindFlags
The resulting type after applying the -
operator.
sourceimpl SubAssign<MemBindFlags> for MemBindFlags
impl SubAssign<MemBindFlags> for MemBindFlags
sourcefn sub_assign(&mut self, other: MemBindFlags)
fn sub_assign(&mut self, other: MemBindFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for MemBindFlags
impl UpperHex for MemBindFlags
impl Copy for MemBindFlags
impl Eq for MemBindFlags
impl StructuralEq for MemBindFlags
impl StructuralPartialEq for MemBindFlags
Auto Trait Implementations
impl RefUnwindSafe for MemBindFlags
impl Send for MemBindFlags
impl Sync for MemBindFlags
impl Unpin for MemBindFlags
impl UnwindSafe for MemBindFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more