Struct packet_stream::PsSink
[−]
[src]
pub struct PsSink<W: AsyncWrite, B: AsRef<[u8]>> { /* fields omitted */ }
The sink half of a duplex multiplexed over the packet-stream.
Trait Implementations
impl<W, B> Sink for PsSink<W, B> where
W: AsyncWrite,
B: AsRef<[u8]>,
[src]
W: AsyncWrite,
B: AsRef<[u8]>,
type SinkItem = (B, Metadata)
The type of value that the sink accepts.
type SinkError = Option<IoError>
The error contains a None
if an Request
, PeerResponse
or
PsSink
errored previously.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<(), Self::SinkError>
[src]
Attempts to prepare the Sink
to receive a value. Read more
fn start_send(&mut self, item: Self::SinkItem) -> Result<(), Self::SinkError>
[src]
Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready
which returned Ok(Async::Ready(()))
. Read more
fn poll_flush(&mut self, cx: &mut Context) -> Poll<(), Self::SinkError>
[src]
Flush any remaining output from this sink. Read more
fn poll_close(&mut self, cx: &mut Context) -> Poll<(), Self::SinkError>
[src]
Flush any remaining output and close this sink, if necessary. Read more