Trait signalo_filters::prelude::Sink[][src]

pub trait Sink<T> {
    type Output;
    fn sink(&mut self, input: T);
fn finalize(self) -> Self::Output; }

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

The sink's output type.

Required Methods

Processes the input value.

Consumes self, returning an accumulated output.

Implementors