pub struct Stream { /* private fields */ }Expand description
A target rendered from the grid’s first sample on, one block at a time: every block is the samples a whole render over the same rows writes there, bit for bit.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn open(
graph: &Graph,
target: &str,
bindings: &[(String, f64)],
config: StreamConfig,
) -> Result<Stream, EngineError>
pub fn open( graph: &Graph, target: &str, bindings: &[(String, f64)], config: StreamConfig, ) -> Result<Stream, EngineError>
bindings are the named arguments @target(t, name=value, ...) is written with.
Sourcepub fn next_block(&mut self) -> Result<Option<Block<'_>>, EngineError>
pub fn next_block(&mut self) -> Result<Option<Block<'_>>, EngineError>
The next block, cut where silence was proven; None from there on.
pub fn position(&self) -> usize
pub fn width(&self) -> usize
pub fn config(&self) -> StreamConfig
pub fn checkpoint(&self) -> Checkpoint
Sourcepub fn resume(
&self,
checkpoint: &Checkpoint,
bindings: &[(String, f64)],
silent: Option<Silent>,
) -> Result<Stream, EngineError>
pub fn resume( &self, checkpoint: &Checkpoint, bindings: &[(String, f64)], silent: Option<Silent>, ) -> Result<Stream, EngineError>
This stream’s target from checkpoint on, bindings in force, ending at silent
proven by max_secs past the checkpoint. A binding may move only where no sample
before the checkpoint can hear it: release, at or past it.
Auto Trait Implementations§
impl !Freeze for Stream
impl !RefUnwindSafe for Stream
impl !Send for Stream
impl !Sync for Stream
impl !UnwindSafe for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more