pub struct BufferedSampler<T, M>where
M: MatrixSampler<T>,{ /* private fields */ }
Implementations§
Source§impl<T, M> BufferedSampler<T, M>where
M: MatrixSampler<T>,
impl<T, M> BufferedSampler<T, M>where
M: MatrixSampler<T>,
pub fn from_time_matrix(matrix: M) -> (Sender<Timed<T>>, Self)
Trait Implementations§
Source§impl<T, M> Interpolator for BufferedSampler<T, M>where
M: MatrixSampler<T>,
impl<T, M> Interpolator for BufferedSampler<T, M>where
M: MatrixSampler<T>,
Source§fn interpolate(&mut self, timestamp: Timestamp) -> Result<(), FoldError>
fn interpolate(&mut self, timestamp: Timestamp) -> Result<(), FoldError>
Interpolates samples to the given timestamp. Read more
Source§fn interpolate_and_get_buffers(
&mut self,
timestamp: Timestamp,
) -> Result<SerializedBuffer, FoldError>
fn interpolate_and_get_buffers( &mut self, timestamp: Timestamp, ) -> Result<SerializedBuffer, FoldError>
Interpolates samples to the given timestamp and gets the serialized aggregation buffers. Read more
Source§impl<T, M> ServedTimeMatrix for BufferedSampler<T, M>
impl<T, M> ServedTimeMatrix for BufferedSampler<T, M>
Auto Trait Implementations§
impl<T, M> Freeze for BufferedSampler<T, M>where
M: Freeze,
impl<T, M> RefUnwindSafe for BufferedSampler<T, M>where
M: RefUnwindSafe,
impl<T, M> Send for BufferedSampler<T, M>
impl<T, M> Sync for BufferedSampler<T, M>
impl<T, M> Unpin for BufferedSampler<T, M>where
M: Unpin,
impl<T, M> UnwindSafe for BufferedSampler<T, M>where
M: UnwindSafe,
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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