[][src]Struct accel::device::ContextGuard

pub struct ContextGuard {
    ptr: CUcontext,
}

RAII handler for using CUDA context

As described in CUDA Programming Guide, library using CUDA should push context before using it, and then pop it.

Fields

ptr: CUcontext

Trait Implementations

impl Drop for ContextGuard[src]

Auto Trait Implementations

impl RefUnwindSafe for ContextGuard

impl !Send for ContextGuard

impl !Sync for ContextGuard

impl Unpin for ContextGuard

impl UnwindSafe for ContextGuard

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.