pub enum TransferDirection {
DeviceToHost,
DeviceToDisk,
HostToDevice,
HostToDisk,
DiskToDevice,
DiskToHost,
}Expand description
A strongly typed transfer direction between two distinct tiers.
Variants§
DeviceToHost
Device memory to host memory.
DeviceToDisk
Device memory to disk.
HostToDevice
Host memory to device memory.
HostToDisk
Host memory to disk.
DiskToDevice
Disk to device memory.
DiskToHost
Disk to host memory.
Implementations§
Source§impl TransferDirection
impl TransferDirection
Sourcepub const fn source(self) -> MemoryTier
pub const fn source(self) -> MemoryTier
Returns the source tier.
Sourcepub const fn destination(self) -> MemoryTier
pub const fn destination(self) -> MemoryTier
Returns the destination tier.
Trait Implementations§
Source§impl Clone for TransferDirection
impl Clone for TransferDirection
Source§fn clone(&self) -> TransferDirection
fn clone(&self) -> TransferDirection
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 TransferDirection
Source§impl Debug for TransferDirection
impl Debug for TransferDirection
Source§impl<'de> Deserialize<'de> for TransferDirection
impl<'de> Deserialize<'de> for TransferDirection
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
impl Eq for TransferDirection
Source§impl Hash for TransferDirection
impl Hash for TransferDirection
Source§impl Ord for TransferDirection
impl Ord for TransferDirection
Source§fn cmp(&self, other: &TransferDirection) -> Ordering
fn cmp(&self, other: &TransferDirection) -> Ordering
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 TransferDirection
impl PartialEq for TransferDirection
Source§impl PartialOrd for TransferDirection
impl PartialOrd for TransferDirection
Source§impl Serialize for TransferDirection
impl Serialize for TransferDirection
impl StructuralPartialEq for TransferDirection
Auto Trait Implementations§
impl Freeze for TransferDirection
impl RefUnwindSafe for TransferDirection
impl Send for TransferDirection
impl Sync for TransferDirection
impl Unpin for TransferDirection
impl UnsafeUnpin for TransferDirection
impl UnwindSafe for TransferDirection
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