Struct ocl::Event [] [src]

pub struct Event(_);

An event representing a command or user created event.

Methods

impl Event
[src]

fn empty() -> Event

Creates a new, empty event which must be filled by a newly initiated command, becoming associated with it.

unsafe fn from_core(event_core: EventCore) -> Event

Creates a new Event from a EventCore.

Safety

Not meant to be called directly.

fn wait(&self) -> OclResult<()>

Waits for all events in list to complete before returning.

Similar in function to Queue::finish().

fn info(&self, info_kind: EventInfo) -> EventInfoResult

Returns info about the event.

fn profiling_info(&self, info_kind: ProfilingInfo) -> ProfilingInfoResult

Returns info about the event.

fn core_as_ref(&self) -> Option<&EventCore>

Returns a reference to the core pointer wrapper, usable by functions in the core module.

fn core_as_mut(&mut self) -> Option<&mut EventCore>

Returns a mutable reference to the core pointer wrapper usable by functions in the core module.

fn is_empty(&self) -> bool

Returns true if this event is 'empty' and has not yet been associated with a command.

Methods from Deref<Target=EventCore>

unsafe fn as_ptr_ref(&self) -> &cl_event

Returns an immutable reference to a pointer, do not deref and store it unless you will manage its associated reference count carefully.

unsafe fn as_ptr_mut(&mut self) -> &mut cl_event

Returns a mutable reference to a pointer, do not deref then modify or store it unless you will manage its associated reference count carefully.

fn is_valid(&self) -> bool

[FIXME]: ADD VALIDITY CHECK BY CALLING '_INFO' OR SOMETHING: NULL CHECK IS NOT ENOUGH

Trait Implementations

impl Debug for Event
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Event
[src]

fn clone(&self) -> Event

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Into<String> for Event
[src]

fn into(self) -> String

Performs the conversion.

impl Display for Event
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl AsRef<EventCore> for Event
[src]

fn as_ref(&self) -> &EventCore

Performs the conversion.

impl Deref for Event
[src]

type Target = EventCore

The resulting type after dereferencing

fn deref(&self) -> &EventCore

The method called to dereference a value

impl DerefMut for Event
[src]

fn deref_mut(&mut self) -> &mut EventCore

The method called to mutably dereference a value

impl ClEventPtrNew for Event
[src]