pub trait Stream: Send + Sync {
// Required methods
fn synchronize(&self) -> Result<()>;
fn is_idle(&self) -> bool;
fn record(&self) -> Result<Box<dyn Event>>;
}Required Methods§
Sourcefn synchronize(&self) -> Result<()>
fn synchronize(&self) -> Result<()>
Submit a no-op barrier and return when GPU has caught up.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".