pub struct RawMemoryPool {
pub handle: CUmemoryPool,
pub context: Arc<Context>,
}Expand description
Raw ownership of a CUDA memory pool and its context.
Destroy handle while context is alive, or re-adopt the value with MemoryPool::from_raw.
Fields§
§handle: CUmemoryPoolNative pool handle.
context: Arc<Context>Context the pool was created for.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RawMemoryPool
impl !Send for RawMemoryPool
impl !Sync for RawMemoryPool
impl !UnwindSafe for RawMemoryPool
impl Forget for RawMemoryPool
impl Freeze for RawMemoryPool
impl Move for RawMemoryPool
impl Unpin for RawMemoryPool
impl UnsafeUnpin for RawMemoryPool
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