pub struct StreamingSeries { /* private fields */ }Available on crate feature
data only.Expand description
A bounded, append-only (x, y) series for live data.
§Example
use crisol_core::data::StreamingSeries;Implementations§
Source§impl StreamingSeries
impl StreamingSeries
Sourcepub fn new(capacity: usize) -> Self
pub fn new(capacity: usize) -> Self
A live series holding capacity points. A capacity of zero is unlimited.
Sourcepub fn with_window(self, span: f64) -> Self
pub fn with_window(self, span: f64) -> Self
Keep only points within span of the newest x.
Sourcepub fn with_trigger(self, trigger: Trigger) -> Self
pub fn with_trigger(self, trigger: Trigger) -> Self
Attach a trigger.
Sourcepub fn mode(&self) -> StreamMode
pub fn mode(&self) -> StreamMode
The mode.
Sourcepub fn set_mode(&mut self, mode: StreamMode)
pub fn set_mode(&mut self, mode: StreamMode)
Switch live/frozen. Frozen drops pushes until Live.
Sourcepub fn revision(&self) -> u64
pub fn revision(&self) -> u64
A revision that changes on every accepted push, mode change, or trim.
Trait Implementations§
Source§impl Clone for StreamingSeries
impl Clone for StreamingSeries
Source§impl Debug for StreamingSeries
impl Debug for StreamingSeries
Source§impl<'de> Deserialize<'de> for StreamingSeries
impl<'de> Deserialize<'de> for StreamingSeries
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for StreamingSeries
impl Freeze for StreamingSeries
impl Move for StreamingSeries
impl RefUnwindSafe for StreamingSeries
impl Send for StreamingSerieswhere
RawVecInner: Send,
impl Sync for StreamingSerieswhere
RawVecInner: Sync,
impl Unpin for StreamingSeries
impl UnsafeUnpin for StreamingSeries
impl UnwindSafe for StreamingSerieswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more