Struct packet_stream::ClosePs [] [src]

pub struct ClosePs<R: AsyncRead, W, B>(_);

Future for closing the packet-stream, indicating that no more packets will be sent.

This does not immediately close if there are still unfinished Requests, PeerResponses or PsSinks. In that case, the closing happens when the last of them finishes.

The error contains a None if an Request, PeerResponse or PsSink errored previously.

Trait Implementations

impl<R, W, B> Future for ClosePs<R, W, B> where
    R: AsyncRead,
    W: AsyncWrite,
    B: AsRef<[u8]>, 
[src]

A successful value

An 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

Auto Trait Implementations

impl<R, W, B> !Send for ClosePs<R, W, B>

impl<R, W, B> !Sync for ClosePs<R, W, B>