Struct sink_splitter::Controller
[−]
[src]
pub struct Controller<K: Eq + Hash, S> { /* fields omitted */ }
This struct is used to manipulate the collection of output sinks.
Methods
impl<K, V, E, S> Controller<K, S> where
K: Eq + Hash,
S: Sink<SinkItem = V, SinkError = E>,
E: Debug,
[src]
K: Eq + Hash,
S: Sink<SinkItem = V, SinkError = E>,
E: Debug,
fn insert_sink(&mut self, key: K, sink: S) -> Result<(), SplitterHasBeenDropped>
[src]
Insert an output sink into this Splitter
. The output sink will receive all items with
this key.
This method panics if you try to insert a Sink for a key that already has one.