pub enum MemcpyDir {
HostToDevice,
DeviceToHost,
DeviceToDevice,
PeerToPeer {
src_device: u32,
dst_device: u32,
},
}Expand description
Direction of a device memory copy.
Variants§
HostToDevice
Host-to-device transfer (upload).
DeviceToHost
Device-to-host transfer (download).
DeviceToDevice
Device-to-device transfer (on-device copy).
PeerToPeer
Peer-to-peer transfer across devices.
Trait Implementations§
impl Copy for MemcpyDir
impl Eq for MemcpyDir
impl StructuralPartialEq for MemcpyDir
Auto Trait Implementations§
impl Freeze for MemcpyDir
impl RefUnwindSafe for MemcpyDir
impl Send for MemcpyDir
impl Sync for MemcpyDir
impl Unpin for MemcpyDir
impl UnsafeUnpin for MemcpyDir
impl UnwindSafe for MemcpyDir
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