#[repr(u32)]pub enum AffinityScope {
Node = 0,
Socket = 1,
}Variants§
Trait Implementations§
Source§impl Clone for AffinityScope
impl Clone for AffinityScope
Source§fn clone(&self) -> AffinityScope
fn clone(&self) -> AffinityScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AffinityScope
impl Debug for AffinityScope
Source§impl From<AffinityScope> for u32
impl From<AffinityScope> for u32
Source§fn from(enum_value: AffinityScope) -> Self
fn from(enum_value: AffinityScope) -> Self
Converts to this type from the input type.
Source§impl Hash for AffinityScope
impl Hash for AffinityScope
Source§impl PartialEq for AffinityScope
impl PartialEq for AffinityScope
Source§fn eq(&self, other: &AffinityScope) -> bool
fn eq(&self, other: &AffinityScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for AffinityScope
impl TryFrom<u32> for AffinityScope
Source§type Error = TryFromPrimitiveError<AffinityScope>
type Error = TryFromPrimitiveError<AffinityScope>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AffinityScope
impl TryFromPrimitive for AffinityScope
const NAME: &'static str = "AffinityScope"
type Primitive = u32
type Error = TryFromPrimitiveError<AffinityScope>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AffinityScope
impl Eq for AffinityScope
impl StructuralPartialEq for AffinityScope
Auto Trait Implementations§
impl Freeze for AffinityScope
impl RefUnwindSafe for AffinityScope
impl Send for AffinityScope
impl Sync for AffinityScope
impl Unpin for AffinityScope
impl UnsafeUnpin for AffinityScope
impl UnwindSafe for AffinityScope
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
Mutably borrows from an owned value. Read more