Struct signalo_pipes::sink::Pipe [−][src]
pub struct Pipe<T, U> { /* fields omitted */ }
A Pipe
is a simple container joining a pair of a Filter
and a Sink
╠════════════ + ════════════
║ ╭────────╮ + ╭────────╮
║ │ Filter │ + │ Sink │
║ ╰────────╯ + ╰────────╯
╠════════════ + ════════════
└─┬───────────────────────┘
└ Pipe
Methods
impl<T, U> Pipe<T, U>
[src]
impl<T, U> Pipe<T, U>
Trait Implementations
impl<T: Default, U: Default> Default for Pipe<T, U>
[src]
impl<T: Default, U: Default> Default for Pipe<T, U>
impl<T: Clone, U: Clone> Clone for Pipe<T, U>
[src]
impl<T: Clone, U: Clone> Clone for Pipe<T, U>
fn clone(&self) -> Pipe<T, U>
[src]
fn clone(&self) -> Pipe<T, U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug, U: Debug> Debug for Pipe<T, U>
[src]
impl<T: Debug, U: Debug> Debug for Pipe<T, U>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, U> From<(T, U)> for Pipe<T, U>
[src]
impl<T, U> From<(T, U)> for Pipe<T, U>
impl<T, U, Rhs> BitOr<Rhs> for Pipe<T, U>
[src]
impl<T, U, Rhs> BitOr<Rhs> for Pipe<T, U>
type Output = Pipe<Self, Rhs>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Rhs) -> Self::Output
[src]
fn bitor(self, rhs: Rhs) -> Self::Output
Performs the |
operation.
impl<T, U, I> Sink<I> for Pipe<T, U> where
T: Filter<I>,
U: Sink<T::Output>,
[src]
impl<T, U, I> Sink<I> for Pipe<T, U> where
T: Filter<I>,
U: Sink<T::Output>,
type Output = U::Output
The sink's output type.
fn sink(&mut self, input: I)
[src]
fn sink(&mut self, input: I)
Processes the input value.
fn finalize(self) -> Self::Output
[src]
fn finalize(self) -> Self::Output
Consumes self
, returning an accumulated output.
impl<T, U, I> Filter<I> for Pipe<T, U> where
T: Filter<I>,
U: Sink<T::Output>,
[src]
impl<T, U, I> Filter<I> for Pipe<T, U> where
T: Filter<I>,
U: Sink<T::Output>,