Struct sink::sink::Sink [−][src]
pub struct Sink<'a, TInput, TResult, TError> { /* fields omitted */ }
Sink is a simple struct which captures a provided handler function and routes sent data into that handler
Methods
impl<'a, TInput, TResult, TError> Sink<'a, TInput, TResult, TError>
[src]
impl<'a, TInput, TResult, TError> Sink<'a, TInput, TResult, TError>
pub fn new<F: 'a>(handler: F) -> Self where
F: Fn(TInput) -> Result<TResult, TError> + 'a,
[src]
pub fn new<F: 'a>(handler: F) -> Self where
F: Fn(TInput) -> Result<TResult, TError> + 'a,
Builds a Sink using the provided handler