pub type BufferedDrain<S, I> = DemuxDrain<I, Buffer<S, I>>;
Aliased Type§
struct BufferedDrain<S, I> { /* private fields */ }
Trait Implementations
Source§impl<T, S: Sink<T, Error = Error> + Send + Sync> Sink<(u32, T)> for DemuxDrain<T, S>
impl<T, S: Sink<T, Error = Error> + Send + Sync> Sink<(u32, T)> for DemuxDrain<T, S>
Source§fn poll_ready(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: (u32, T)) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: (u32, T)) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read more