Struct sink_splitter::Splitter [] [src]

pub struct Splitter<K: Eq + Hash, S> { /* fields omitted */ }

This is the input Sink that routes each item to one of many output sinks. This sink takes as input (K, V) pairs where K is the key that determines which output sink to route to and V is the value that is sent to the output sink.

Methods

impl<K, V, E, S> Splitter<K, S> where
    K: Clone + Eq + Hash,
    S: Sink<SinkItem = V, SinkError = E>,
    E: Debug
[src]

[src]

Consume this Splitter and return its map of output sinks. Note that this function does not close any of the sinks.

Trait Implementations

impl<K: Debug + Eq + Hash, S: Debug> Debug for Splitter<K, S>
[src]

[src]

Formats the value using the given formatter.

impl<K, V, E, S> Sink for Splitter<K, S> where
    K: Clone + Eq + Hash,
    S: Sink<SinkItem = V, SinkError = E>,
    E: Debug
[src]

The type of value that the sink accepts.

The type of value produced by the sink when an error occurs.

[src]

Begin the process of sending a value to the sink. Read more

[src]

Flush all output from this sink, if necessary. Read more

[src]

A method to indicate that no more values will ever be pushed into this sink. Read more

[src]

Creates a new object which will produce a synchronous sink. Read more

[src]

Composes a function in front of the sink. Read more

[src]

Composes a function in front of the sink. Read more

[src]

Transforms the error returned by the sink.

[src]

Map this sink's error to any error implementing From for this sink's Error, returning a new sink. Read more

[src]

Adds a fixed-size buffer to the current sink. Read more

[src]

A future that completes when the sink has finished processing all pending requests. Read more

[src]

A future that completes after the given item has been fully processed into the sink, including flushing. Read more

[src]

A future that completes after the given stream has been fully processed into the sink, including flushing. Read more