Trait EventTrait

Source
pub trait EventTrait: EventTraitConst {
    // Required method
    fn as_raw_mut_Event(&mut self) -> *mut c_void;

    // Provided methods
    fn record(&mut self, stream: &mut impl StreamTrait) -> Result<()> { ... }
    fn record_def(&mut self) -> Result<()> { ... }
    fn wait_for_completion(&mut self) -> Result<()> { ... }
}
Expand description

Mutable methods for core::Event

Required Methods§

Provided Methods§

Source

fn record(&mut self, stream: &mut impl StreamTrait) -> Result<()>

records an event

§C++ default parameters
  • stream: Stream::Null()
Source

fn record_def(&mut self) -> Result<()>

records an event

§Note

This alternative version of EventTrait::record function uses the following default values for its arguments:

  • stream: Stream::Null()
Source

fn wait_for_completion(&mut self) -> Result<()>

waits for an event to complete

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§