pub struct EnteredContext<'a> { /* private fields */ }Expand description
Thread-scoped execution capability for GPU work on a ResourceHandle.
Values of this type are created only through ResourceHandle::enter.
Holding an EnteredContext guarantees that the current thread is entered
on the owning CUDA device for the lifetime of the borrow.
Implementations§
Source§impl EnteredContext<'_>
impl EnteredContext<'_>
Sourcepub fn handle_ptr(&self) -> *mut cugraph_resource_handle_t
pub fn handle_ptr(&self) -> *mut cugraph_resource_handle_t
Borrow the entered raw cuGraph resource-handle pointer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EnteredContext<'a>
impl<'a> !Send for EnteredContext<'a>
impl<'a> !Sync for EnteredContext<'a>
impl<'a> !UnwindSafe for EnteredContext<'a>
impl<'a> Freeze for EnteredContext<'a>
impl<'a> Unpin for EnteredContext<'a>
impl<'a> UnsafeUnpin for EnteredContext<'a>
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