[][src]Struct opencl3::event::Event

pub struct Event { /* fields omitted */ }

An OpenCL event object.
Has methods to return information from calls to clGetEventInfo and clGetEventProfilingInfo with the appropriate parameters.
Implements the Drop trait to call release_event when the object is dropped.

Implementations

impl Event[src]

pub fn new(event: cl_event) -> Self[src]

Create an Event from an OpenCL cl_event.

  • event - a valid OpenCL cl_event.

returns the new Event

pub fn get(&self) -> cl_event[src]

Get the underlying OpenCL cl_event.

pub fn wait(&self) -> Result<(), cl_int>[src]

Wait for the event to complete.

pub fn command_execution_status(&self) -> Result<cl_int, cl_int>[src]

pub fn command_type(&self) -> Result<cl_uint, cl_int>[src]

pub fn reference_count(&self) -> Result<cl_uint, cl_int>[src]

pub fn command_queue(&self) -> Result<intptr_t, cl_int>[src]

pub fn context(&self) -> Result<intptr_t, cl_int>[src]

pub fn profiling_command_queued(&self) -> Result<cl_ulong, cl_int>[src]

pub fn profiling_command_submit(&self) -> Result<cl_ulong, cl_int>[src]

pub fn profiling_command_start(&self) -> Result<cl_ulong, cl_int>[src]

pub fn profiling_command_end(&self) -> Result<cl_ulong, cl_int>[src]

pub fn profiling_command_complete(&self) -> Result<cl_ulong, cl_int>[src]

Trait Implementations

impl Drop for Event[src]

Auto Trait Implementations

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.