Struct transformable_channels::mpsc::RawSender
[−]
[src]
pub struct RawSender<T> where
T: Send + 'static, { /* fields omitted */ }
An implementation of ExtSender
directly on top of std::sync::mpsc::Sender
and with
the same performance.
Trait Implementations
impl<T> ExtSender<T> for RawSender<T> where
T: Send + 'static,
[src]
T: Send + 'static,
fn send(&self, t: T) -> Result<(), ()>
Let the wrapped Sender
send the value. Discard error values.
fn internal_clone(&self) -> Box<ExtSender<T>>
Clone the wrapped Sender
and wrap the result.
impl<T> Clone for RawSender<T> where
T: Send + 'static,
[src]
T: Send + 'static,
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> TransformableSender<T> for RawSender<T> where
T: Send + 'static,
[src]
T: Send + 'static,
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,
Self: Sized,
F: Fn(T) -> V + Sync + Send + 'static,
T: Send + 'static,
V: Send + 'static,
From an ExtSender
, derive a new ExtSender
with the same Receiver
, but which transforms values prior to transmitting them. Read more
fn filter<F>(&self, f: F) -> FilteredSender<F, V, Self> where
Self: Sized,
F: Fn(&V) -> bool + Sync + Send + 'static,
Self: Sized,
F: Fn(&V) -> bool + Sync + Send + 'static,
From an ExtSender
, derive a new ExtSender
with the same Receiver
, but which may decide to discard some values instead of transmitting them. Read more
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,
Self: Sized,
F: Fn(T) -> Option<V> + Sync + Send + 'static,
T: Send + 'static,
From an ExtSender
, derive a new ExtSender
with the same Receiver
, but which may both transform values priori to transmitting them, or to discard them entirely. Read more
fn tie<S, W>(&self, other: &S) -> TiedSender<Self, S, V, W> where
Self: Sized,
S: ExtSender<W> + TransformableSender<W>,
W: Send + 'static,
Self: Sized,
S: ExtSender<W> + TransformableSender<W>,
W: Send + 'static,
From two ExtSender
s, derive a new ExtSender
which sends to both ExtSender
s. Read more