Struct transformable_channels::mpsc::FilteredSender [] [src]

pub struct FilteredSender<F, T, W> where F: Fn(&T) -> bool + Sync + Send + 'static, T: Send + 'static, W: ExtSender<T> + TransformableSender<T> + Sized {
    // some fields omitted
}

An ExtSender obtained from a call to method filter.

Trait Implementations

impl<F, T, W> ExtSender<T> for FilteredSender<F, T, W> where F: Fn(&T) -> bool + Sync + Send + 'static, T: Send + 'static, W: ExtSender<T> + TransformableSender<T> + Sized

fn send(&self, t: T) -> Result<(), ()>

fn internal_clone(&self) -> Box<ExtSender<T>>

impl<F, T, W> Clone for FilteredSender<F, T, W> where F: Fn(&T) -> bool + Sync + Send + 'static, T: Send + 'static, W: ExtSender<T> + TransformableSender<T> + Sized

fn clone(&self) -> Self

fn clone_from(&mut self, source: &Self)

impl<F, T, W> TransformableSender<T> for FilteredSender<F, T, W> where F: Fn(&T) -> bool + Sync + Send + 'static, T: Send + 'static, W: ExtSender<T> + TransformableSender<T> + Sized

fn map<F, T>(&self, f: F) -> MappedSender<F, T, V, Self> where Self: Sized, F: Fn(T) -> V + Sync + Send + 'static, T: Send + 'static, V: Send + 'static

fn filter<F>(&self, f: F) -> FilteredSender<F, V, Self> where Self: Sized, F: Fn(&V) -> bool + Sync + Send + 'static

fn filter_map<F, T>(&self, f: F) -> FilterMappedSender<F, T, V, Self> where Self: Sized, F: Fn(T) -> Option<V> + Sync + Send + 'static, T: Send + 'static

fn tie<S, W>(&self, other: &S) -> TiedSender<Self, S, V, W> where Self: Sized, S: ExtSender<W> + TransformableSender<W>, W: Send + 'static