pub enum StorageKind {
System,
Pinned,
Device(u32),
Disk(u64),
}Expand description
Storage type classification.
Variants§
System
System memory (malloc)
Pinned
CUDA pinned host memory
Device(u32)
CUDA device memory with device ID
Disk(u64)
Disk-backed memory (mmap)
Trait Implementations§
Source§impl Clone for StorageKind
impl Clone for StorageKind
Source§fn clone(&self) -> StorageKind
fn clone(&self) -> StorageKind
Returns a duplicate of the value. Read more
1.0.0 · 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 StorageKind
impl Debug for StorageKind
Source§impl<'de> Deserialize<'de> for StorageKind
impl<'de> Deserialize<'de> for StorageKind
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StorageKind
impl PartialEq for StorageKind
Source§impl Serialize for StorageKind
impl Serialize for StorageKind
impl Copy for StorageKind
impl Eq for StorageKind
impl StructuralPartialEq for StorageKind
Auto Trait Implementations§
impl Freeze for StorageKind
impl RefUnwindSafe for StorageKind
impl Send for StorageKind
impl Sync for StorageKind
impl Unpin for StorageKind
impl UnwindSafe for StorageKind
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