pub struct Controller<K: Eq + Hash, S> { /* private fields */ }
Expand description
This struct is used to manipulate the collection of output sinks.
Implementations§
Source§impl<K, V, E, S> Controller<K, S>
impl<K, V, E, S> Controller<K, S>
Sourcepub fn insert_sink(
&mut self,
key: K,
sink: S,
) -> Result<(), SplitterHasBeenDropped>
pub fn insert_sink( &mut self, key: K, sink: S, ) -> Result<(), SplitterHasBeenDropped>
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.
Trait Implementations§
Auto Trait Implementations§
impl<K, S> Freeze for Controller<K, S>
impl<K, S> !RefUnwindSafe for Controller<K, S>
impl<K, S> !Send for Controller<K, S>
impl<K, S> !Sync for Controller<K, S>
impl<K, S> Unpin for Controller<K, S>
impl<K, S> !UnwindSafe for Controller<K, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more