Skip to main content

Stream

Struct Stream 

Source
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

Source

pub async fn open<B>( graph: &Graph, target: &Expr, config: StreamConfig, tier: &Tier<B>, ) -> Result<Stream, EngineError>
where B: Backend,

Source

pub fn graph(&self) -> &Graph

Source

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.

Source

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.

Source

pub fn dropped(&self) -> Vec<&str>

The latest nodes a live edit started silent, of counts().dropped.

Source

pub fn counts(&self) -> Counts

Source

pub fn evaluated(&self, node: &str) -> Vec<Extent>

Every segment of its own clock the stream computed of node’s value, in order.

Source

pub fn pruned(&self) -> Pruned

Source

pub fn landed(&self, handle: Handle) -> Option<i64>

Source

pub fn position(&self) -> i64

Source

pub fn work(&self) -> Work

Source

pub fn stats(&self) -> CacheStats

Source

pub fn held_bytes(&self) -> usize

The bytes its values hold, samples and state.

Source

pub fn end(&self) -> Option<i64>

Source

pub fn width(&self) -> usize

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.