Skip to main content

Stream

Trait Stream 

Source
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§

Source

fn synchronize(&self) -> Result<()>

Submit a no-op barrier and return when GPU has caught up.

Source

fn is_idle(&self) -> bool

Whether all previously enqueued work has completed.

Source

fn record(&self) -> Result<Box<dyn Event>>

Record an event on this stream.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§