#[non_exhaustive]#[repr(u32)]pub enum MemoryAdvise {
SetReadMostly = 1,
UnsetReadMostly = 2,
SetPreferredLocation = 3,
UnsetPreferredLocation = 4,
SetAccessedBy = 5,
UnsetAccessedBy = 6,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SetReadMostly = 1
UnsetReadMostly = 2
SetPreferredLocation = 3
UnsetPreferredLocation = 4
SetAccessedBy = 5
UnsetAccessedBy = 6
Trait Implementations§
Source§impl Clone for MemoryAdvise
impl Clone for MemoryAdvise
Source§fn clone(&self) -> MemoryAdvise
fn clone(&self) -> MemoryAdvise
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 moreimpl Copy for MemoryAdvise
Source§impl Debug for MemoryAdvise
impl Debug for MemoryAdvise
Source§impl Display for MemoryAdvise
impl Display for MemoryAdvise
impl Eq for MemoryAdvise
Source§impl From<CUmem_advise_enum> for MemoryAdvise
impl From<CUmem_advise_enum> for MemoryAdvise
Source§fn from(value: CUmem_advise) -> Self
fn from(value: CUmem_advise) -> Self
Converts to this type from the input type.
Source§impl From<MemoryAdvise> for u32
impl From<MemoryAdvise> for u32
Source§fn from(enum_value: MemoryAdvise) -> Self
fn from(enum_value: MemoryAdvise) -> Self
Converts to this type from the input type.
Source§impl From<MemoryAdvise> for CUmem_advise
impl From<MemoryAdvise> for CUmem_advise
Source§fn from(value: MemoryAdvise) -> Self
fn from(value: MemoryAdvise) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryAdvise
impl Hash for MemoryAdvise
Source§impl PartialEq for MemoryAdvise
impl PartialEq for MemoryAdvise
Source§fn eq(&self, other: &MemoryAdvise) -> bool
fn eq(&self, other: &MemoryAdvise) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryAdvise
Source§impl TryFrom<u32> for MemoryAdvise
impl TryFrom<u32> for MemoryAdvise
Source§type Error = TryFromPrimitiveError<MemoryAdvise>
type Error = TryFromPrimitiveError<MemoryAdvise>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MemoryAdvise
impl TryFromPrimitive for MemoryAdvise
const NAME: &'static str = "MemoryAdvise"
type Primitive = u32
type Error = TryFromPrimitiveError<MemoryAdvise>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MemoryAdvise
impl RefUnwindSafe for MemoryAdvise
impl Send for MemoryAdvise
impl Sync for MemoryAdvise
impl Unpin for MemoryAdvise
impl UnsafeUnpin for MemoryAdvise
impl UnwindSafe for MemoryAdvise
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