Crate packet_stream [−] [src]
Implements the packet-stream protocol in rust.
Future for closing the packet-stream, indicating that no more packets will be sent.
A future that emits the wrapped writer of a packet-stream once the outgoing half of the stream has been fully closed, it has errored, or once all references to it have been dropped.
The metadata associated with a packet.
A request initated by the peer. Drop to ignore it, or use
Future that completes when the response has been sent to the peer.
A stream of incoming requests from the peer.
Allows sending packets to the peer.
The sink half of a duplex multiplexed over the packet-stream.
The stream half of a duplex multiplexed over the packet-stream.
An outgoing request, initated by this packet-stream.
A response that will be received from the peer.
An error indicating what happend on a connection.
An incoming packet, initiated by the peer.
An enumeration representing the different types a packet can have.
Take ownership of an AsyncRead and an AsyncWrite to create the two halves of a packet-stream, as well as a future for notification when the read-half of the packet-stream has been closed, errored or is not referenced anymore.