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§
fn as_raw_mut_Event(&mut self) -> *mut c_void
Provided Methods§
Sourcefn record(&mut self, stream: &mut impl StreamTrait) -> Result<()>
fn record(&mut self, stream: &mut impl StreamTrait) -> Result<()>
Sourcefn record_def(&mut self) -> Result<()>
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()
Sourcefn wait_for_completion(&mut self) -> Result<()>
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.