pub trait ModelStreams {
// Provided methods
fn default_stream(&self) -> u64 { ... }
fn create_stream(&self) -> Result<u64> { ... }
fn create_event(&self) -> Result<u64> { ... }
fn record_event(&self, _event: u64, _stream: u64) -> Result<()> { ... }
fn stream_wait_event(&self, _stream: u64, _event: u64) -> Result<()> { ... }
fn synchronize(&self, _stream: u64) -> Result<()> { ... }
}Expand description
2026-09-26: Streams, events and host synchronisation.
Provided Methods§
Sourcefn default_stream(&self) -> u64
fn default_stream(&self) -> u64
2026-09-25: The default stream. Default 0.
Sourcefn create_stream(&self) -> Result<u64>
fn create_stream(&self) -> Result<u64>
2026-09-25: A new stream. Default Ok(0).
Sourcefn create_event(&self) -> Result<u64>
fn create_event(&self) -> Result<u64>
2026-09-25: A new event. Default Ok(0).
Sourcefn record_event(&self, _event: u64, _stream: u64) -> Result<()>
fn record_event(&self, _event: u64, _stream: u64) -> Result<()>
2026-09-25: Record event on stream. Default: Ok(()).
Sourcefn stream_wait_event(&self, _stream: u64, _event: u64) -> Result<()>
fn stream_wait_event(&self, _stream: u64, _event: u64) -> Result<()>
2026-09-25: Make stream wait for event on the device; the host does not block.
Default: Ok(()).
Sourcefn synchronize(&self, _stream: u64) -> Result<()>
fn synchronize(&self, _stream: u64) -> Result<()>
2026-09-25: Block the host until stream’s work has completed. Default: Ok(()).