Trait signalo_filters::prelude::Sink [−][src]
A sink retrieves the current signal value each time it is called, performing arbitrary actions
with it, such as writing values to a file or passing them to an audio-device.
When the final value has been passed to it calling sink.finalize()
returns an output.
Associated Types
type Output
The sink's output type.
Required Methods
fn sink(&mut self, input: T)
Processes the input value.
fn finalize(self) -> Self::Output
Consumes self
, returning an accumulated output.
Implementors
impl<T> Sink<T> for Bounds<T> where
T: Copy + PartialOrd, type Output = Option<(T, T)>;impl<T> Sink<T> for Integrate<T> where
T: Copy + Num, type Output = Option<T>;impl<T> Sink<T> for Last<T> type Output = Option<T>;
impl<T> Sink<T> for Max<T> where
T: Copy + PartialOrd, type Output = Option<T>;impl<T> Sink<T> for Mean<T> where
T: Copy + PartialOrd + Num, type Output = Option<T>;impl<T> Sink<T> for MeanVariance<T> where
T: Copy + PartialOrd + Num, type Output = Option<(T, T)>;impl<T> Sink<T> for Min<T> where
T: Copy + PartialOrd, type Output = Option<T>;impl<F, T> Sink<T> for F where
F: FnMut(T), type Output = ();