pub struct MappedBuffer { /* private fields */ }Expand description
An abstraction for a mapped buffer for some external memory.
This struct can be created via ExternalMemory::map_range or ExternalMemory::map_all.
The underlying mapped buffer will be freed when this struct is dropped.
Trait Implementations§
Source§impl Debug for MappedBuffer
impl Debug for MappedBuffer
Source§impl DevicePtr<u8> for MappedBuffer
impl DevicePtr<u8> for MappedBuffer
Source§fn device_ptr<'a>(
&'a self,
stream: &'a CudaStream,
) -> (CUdeviceptr, SyncOnDrop<'a>)
fn device_ptr<'a>( &'a self, stream: &'a CudaStream, ) -> (CUdeviceptr, SyncOnDrop<'a>)
Retrieve the device pointer with the intent to read the device memory
associated with it. Read more
Source§impl DeviceSlice<u8> for MappedBuffer
impl DeviceSlice<u8> for MappedBuffer
Auto Trait Implementations§
impl Freeze for MappedBuffer
impl RefUnwindSafe for MappedBuffer
impl !Send for MappedBuffer
impl !Sync for MappedBuffer
impl Unpin for MappedBuffer
impl UnsafeUnpin for MappedBuffer
impl UnwindSafe for MappedBuffer
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