#[non_exhaustive]pub enum MemoryLocation {
Unspecified,
Device(i32),
Host,
Numa(i32),
NumaCurrent,
Invisible,
DeviceLocalityDomain {
device_id: u8,
locality_domain_id: u8,
},
}Expand description
Specifies the type and identity of a memory location.
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.
Unspecified
Location is unspecified; no preferred location for a managed memory pool.
Device(i32)
Location is a device location; the payload is a device ordinal.
Host
Location is host memory.
Numa(i32)
Location is a host NUMA node; the payload is its identifier.
NumaCurrent
Location is the host NUMA node of the current thread.
Invisible
Location is not visible but the device is accessible.
DeviceLocalityDomain
Location is a portion of device memory, specified by the locality domain ID.
Trait Implementations§
Source§impl Clone for MemoryLocation
impl Clone for MemoryLocation
impl Copy for MemoryLocation
Source§impl Debug for MemoryLocation
impl Debug for MemoryLocation
Source§impl Default for MemoryLocation
impl Default for MemoryLocation
impl Eq for MemoryLocation
Source§impl From<CUmemLocation_st> for MemoryLocation
impl From<CUmemLocation_st> for MemoryLocation
Source§fn from(value: CUmemLocation) -> Self
fn from(value: CUmemLocation) -> Self
Converts to this type from the input type.
Source§impl From<MemoryLocation> for CUmemLocation
impl From<MemoryLocation> for CUmemLocation
Source§fn from(value: MemoryLocation) -> Self
fn from(value: MemoryLocation) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryLocation
impl Hash for MemoryLocation
Source§impl Ord for MemoryLocation
impl Ord for MemoryLocation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MemoryLocation
impl PartialEq for MemoryLocation
Source§impl PartialOrd for MemoryLocation
impl PartialOrd for MemoryLocation
impl StructuralPartialEq for MemoryLocation
Auto Trait Implementations§
impl Forget for MemoryLocation
impl Freeze for MemoryLocation
impl Move for MemoryLocation
impl RefUnwindSafe for MemoryLocation
impl Send for MemoryLocation
impl Sync for MemoryLocation
impl Unpin for MemoryLocation
impl UnsafeUnpin for MemoryLocation
impl UnwindSafe for MemoryLocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.