Struct packet_stream::Response
[−]
[src]
pub struct Response<R: AsyncRead>(_);
A response that will be received from the peer.
Trait Implementations
impl<R: AsyncRead> Future for Response<R>
[src]
type Item = (Box<[u8]>, Metadata)
A successful value
type Error = ConnectionError
If the peer closes the packet-stream, this emits a
ConnectionError::Closed
. If an error happens/happened on the underlying
AsyncRead
, this emits a ConnectionError::Errored
.
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