Type Alias BufferedDrain

Source
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>

Source§

type Error = Error

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

fn poll_ready( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
Source§

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
Source§

fn poll_flush( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
Source§

fn poll_close( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Flush any remaining output and close this sink, if necessary. Read more
Source§

impl<'pin, T, S: Sink<T, Error = Error> + Send + Sync + ?Sized> Unpin for DemuxDrain<T, S>
where __DemuxDrain<'pin, T, S>: Unpin,