pub struct Series<'a, const N: usize> { /* private fields */ }Expand description
Append-only block of at most N entries. Every slot uses fixed storage, including gaps.
Implementations§
Source§impl<'a, const N: usize> Series<'a, N>
impl<'a, const N: usize> Series<'a, N>
Sourcepub fn new(
channel: Channel<'a>,
period: Period,
first_utc: i64,
) -> Result<Self, Error>
pub fn new( channel: Channel<'a>, period: Period, first_utc: i64, ) -> Result<Self, Error>
Start an empty block at its first reportable instant.
pub fn channel(&self) -> Channel<'a>
pub fn period(&self) -> Period
pub fn next_slot(&self) -> Option<i64>
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for Series<'a, N>
impl<'a, const N: usize> RefUnwindSafe for Series<'a, N>
impl<'a, const N: usize> Send for Series<'a, N>
impl<'a, const N: usize> Sync for Series<'a, N>
impl<'a, const N: usize> Unpin for Series<'a, N>
impl<'a, const N: usize> UnsafeUnpin for Series<'a, N>
impl<'a, const N: usize> UnwindSafe for Series<'a, N>
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