Struct packet_stream::PeerResponse
[−]
[src]
pub struct PeerResponse<W: AsyncWrite, B: AsRef<[u8]>>(_);
Future that completes when the response has been sent to the peer.
Trait Implementations
impl<W: AsyncWrite, B: AsRef<[u8]>> Future for PeerResponse<W, B>
[src]
type Item = ()
A successful value
type Error = Option<IoError>
The error contains a None
if an Request
, PeerResponse
or
PsSink
errored previously.
fn poll(&mut self, cx: &mut Context) -> Poll<Self::Item, Self::Error>
[src]
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more