[][src]Trait accel::device::Contexted

pub trait Contexted {
    fn guard(&self) -> Result<ContextGuard>;
fn sync(&self) -> Result<()>;
fn version(&self) -> Result<u32>;
fn get_ref(&self) -> ContextRef; }

Object with CUDA context

Required methods

fn guard(&self) -> Result<ContextGuard>

fn sync(&self) -> Result<()>

fn version(&self) -> Result<u32>

fn get_ref(&self) -> ContextRef

Get a reference

This is NOT a Rust reference, i.e. you can drop owned context while the reference exists. The reference becomes expired after owned context is released, and it will cause a runtime error.

Loading content...

Implementors

impl Contexted for ContextRef[src]

impl Contexted for Linker[src]

impl Contexted for Module[src]

impl Contexted for Event[src]

impl Contexted for Stream[src]

impl Contexted for Context[src]

impl<'_> Contexted for Kernel<'_>[src]

impl<'a, T> Contexted for RegisteredMemory<'a, T>[src]

impl<T> Contexted for DeviceMemory<T>[src]

impl<T> Contexted for PageLockedMemory<T>[src]

impl<T, Dim> Contexted for Array<T, Dim>[src]

Loading content...