[−][src]Struct opencl3::event::Event
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
Auto Trait Implementations
impl RefUnwindSafe for Event
[src]
impl !Send for Event
[src]
impl !Sync for Event
[src]
impl Unpin for Event
[src]
impl UnwindSafe for Event
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,