pub trait SinkVariadic<Item, Error>: Variadic + Sealed<Item, Error> {
// Required methods
fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>;
fn start_send(
self: Pin<&mut Self>,
idx: usize,
item: Item,
) -> Result<(), Error>;
fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>;
fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>;
}
Available on crate feature
variadics
only.Required Methods§
Sourcefn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Sink::poll_ready
for all sinks.
Sourcefn start_send(self: Pin<&mut Self>, idx: usize, item: Item) -> Result<(), Error>
fn start_send(self: Pin<&mut Self>, idx: usize, item: Item) -> Result<(), Error>
Sink::start_send
for the sink at index idx
.
Sourcefn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Sink::poll_flush
for all sinks.
Sourcefn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Sink::poll_close
for all sinks.