pub struct Stream { /* private fields */ }Expand description
A target rendered block by block off one table, reading @notes, the sum of the terms
added. A change builds only what it changed or newly reads; the rest stays as it stood.
Implementations§
Source§impl Stream
impl Stream
pub async fn open<B>(
graph: &Graph,
target: &Expr,
config: StreamConfig,
tier: &Tier<B>,
) -> Result<Stream, EngineError>where
B: Backend,
pub fn graph(&self) -> &Graph
Sourcepub fn read(&mut self, at: i64, n: usize) -> Result<Option<Block>, EngineError>
pub fn read(&mut self, at: i64, n: usize) -> Result<Option<Block>, EngineError>
n samples from at, None past the end. An at behind is refused; one ahead skips
there, computing through the span, or, live, as go_live says.
Sourcepub fn go_live(&mut self)
pub fn go_live(&mut self)
An edited node with no state, or one a read skips past, starts silent, never computing
its past, named in dropped; a formula reads on exactly.
Sourcepub fn dropped(&self) -> Vec<&str>
pub fn dropped(&self) -> Vec<&str>
The latest nodes a live edit started silent, of counts().dropped.
pub fn counts(&self) -> Counts
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 pruned(&self) -> Pruned
pub fn landed(&self, handle: Handle) -> Option<i64>
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 !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