pub struct RawExternalMemory {
pub handle: CUexternalMemory,
pub size: usize,
pub context: Arc<Context>,
}Expand description
Raw ownership of an unmapped external-memory import and its context.
Destroy handle while context is alive, or re-adopt the value with ExternalMemory::from_raw.
Fields§
§handle: CUexternalMemoryNative external-memory handle.
size: usizeImported size in bytes.
context: Arc<Context>Context the memory was imported into.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RawExternalMemory
impl !Send for RawExternalMemory
impl !Sync for RawExternalMemory
impl !UnwindSafe for RawExternalMemory
impl Forget for RawExternalMemory
impl Freeze for RawExternalMemory
impl Move for RawExternalMemory
impl Unpin for RawExternalMemory
impl UnsafeUnpin for RawExternalMemory
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