[−][src]Struct futures_util::sink::Fanout
Sink that clones incoming items and forwards them to two sinks at the same time.
Backpressure from any downstream sink propagates up, which means that this sink can only process items as fast as its slowest downstream sink.
Methods
impl<Si1, Si2> Fanout<Si1, Si2>
[src][−]
pub fn get_ref(&self) -> (&Si1, &Si2)
[src][+]
pub fn get_mut(&mut self) -> (&mut Si1, &mut Si2)
[src][+]
pub fn get_pin_mut<'a>(
self: Pin<&'a mut Self>
) -> (Pin<&'a mut Si1>, Pin<&'a mut Si2>) where
Si1: Unpin,
Si2: Unpin,
[src][+]
self: Pin<&'a mut Self>
) -> (Pin<&'a mut Si1>, Pin<&'a mut Si2>) where
Si1: Unpin,
Si2: Unpin,
pub fn into_inner(self) -> (Si1, Si2)
[src][+]
Trait Implementations
impl<Si1: Debug, Si2: Debug> Debug for Fanout<Si1, Si2>
[src][+]
impl<Si1, Si2, Item> Sink<Item> for Fanout<Si1, Si2> where
Si1: Sink<Item>,
Item: Clone,
Si2: Sink<Item, SinkError = Si1::SinkError>,
[src][+]
Si1: Sink<Item>,
Item: Clone,
Si2: Sink<Item, SinkError = Si1::SinkError>,
Auto Trait Implementations
impl<Si1, Si2> Send for Fanout<Si1, Si2> where
Si1: Send,
Si2: Send,
Si1: Send,
Si2: Send,
impl<Si1, Si2> Sync for Fanout<Si1, Si2> where
Si1: Sync,
Si2: Sync,
Si1: Sync,
Si2: Sync,
Blanket Implementations
impl<T, Item> SinkExt for T where
T: Sink<Item> + ?Sized,
[src][+]
T: Sink<Item> + ?Sized,
impl<T> From for T
[src][+]
impl<T, U> Into for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T> Borrow for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,