pub struct Stream { /* private fields */ }Expand description
A target rendered block by block off one table. The target may read @notes, the sum of
the terms added under handles; an edit to it or to a term plays from the next block on.
Opening and each edit look store up first, as a render through it does.
Implementations§
Source§impl Stream
impl Stream
pub async fn open( graph: &Graph, target: &Expr, config: StreamConfig, cache: Option<&Cache>, store: &impl Through, ) -> Result<Stream, EngineError>
pub async fn edit( &mut self, graph: &Graph, target: &Expr, store: &impl Through, ) -> Result<(), EngineError>
pub async fn add( &mut self, graph: &Graph, term: &Expr, store: &impl Through, ) -> Result<Handle, EngineError>
Sourcepub async fn replace(
&mut self,
graph: &Graph,
__arg2: (Handle, &Expr),
store: &impl Through,
) -> Result<bool, EngineError>
pub async fn replace( &mut self, graph: &Graph, __arg2: (Handle, &Expr), store: &impl Through, ) -> Result<bool, EngineError>
False, and nothing edited, where the stream no longer holds handle.
Sourcepub async fn remove(
&mut self,
handle: Handle,
store: &impl Through,
) -> Result<bool, EngineError>
pub async fn remove( &mut self, handle: Handle, store: &impl Through, ) -> Result<bool, EngineError>
A sounding term is cut where the stream stands, so what it played stays what it was.
pub fn exprs(&self) -> impl Iterator<Item = &Expr>
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 the stream ends; None from there on.
Sourcepub fn go_live(&mut self)
pub fn go_live(&mut self)
An edited node with no state there starts silent, never computing its past.
Sourcepub fn evaluated(&self, node: &str) -> Vec<Extent>
pub fn evaluated(&self, node: &str) -> Vec<Extent>
Every segment of its own clock the stream computed of node’s value, in order.
pub fn position(&self) -> i64
pub fn work(&self) -> Work
pub fn stats(&self) -> CacheStats
Sourcepub fn held_bytes(&self) -> usize
pub fn held_bytes(&self) -> usize
The bytes its values hold, samples and state.
pub fn end(&self) -> Option<i64>
pub fn width(&self) -> usize
pub fn config(&self) -> &StreamConfig
Auto Trait Implementations§
impl !Freeze for Stream
impl !RefUnwindSafe for Stream
impl !Sync for Stream
impl !UnwindSafe for Stream
impl Send 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