pub struct TransferStats { /* private fields */ }Expand description
Byte accounting for explicit execution transfers.
Implementations§
Source§impl TransferStats
impl TransferStats
Sourcepub fn record(&mut self, direction: TransferDirection, bytes: u64)
pub fn record(&mut self, direction: TransferDirection, bytes: u64)
Records bytes transferred in the given direction.
Sourcepub const fn host_to_device_bytes(self) -> u64
pub const fn host_to_device_bytes(self) -> u64
Returns bytes copied from host memory into device memory.
Sourcepub const fn device_to_device_bytes(self) -> u64
pub const fn device_to_device_bytes(self) -> u64
Returns bytes copied between buffers on a device.
Sourcepub const fn device_to_host_bytes(self) -> u64
pub const fn device_to_host_bytes(self) -> u64
Returns bytes copied from device memory into host memory.
Trait Implementations§
Source§impl Clone for TransferStats
impl Clone for TransferStats
Source§fn clone(&self) -> TransferStats
fn clone(&self) -> TransferStats
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 TransferStats
impl Debug for TransferStats
Source§impl Default for TransferStats
impl Default for TransferStats
Source§fn default() -> TransferStats
fn default() -> TransferStats
Returns the “default value” for a type. Read more
Source§impl Hash for TransferStats
impl Hash for TransferStats
Source§impl PartialEq for TransferStats
impl PartialEq for TransferStats
Source§fn eq(&self, other: &TransferStats) -> bool
fn eq(&self, other: &TransferStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TransferStats
impl Eq for TransferStats
impl StructuralPartialEq for TransferStats
Auto Trait Implementations§
impl Freeze for TransferStats
impl RefUnwindSafe for TransferStats
impl Send for TransferStats
impl Sync for TransferStats
impl Unpin for TransferStats
impl UnsafeUnpin for TransferStats
impl UnwindSafe for TransferStats
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