Struct packet_stream::PeerRequest [] [src]

pub struct PeerRequest<W, B> { /* fields omitted */ }

A request initated by the peer. Drop to ignore it, or use respond to send a response.

Methods

impl<W: AsyncWrite, B: AsRef<[u8]>> PeerRequest<W, B>
[src]

[src]

Returns a Future which completes once the given packet has been sent to the peer.

Trait Implementations

Auto Trait Implementations

impl<W, B> !Send for PeerRequest<W, B>

impl<W, B> !Sync for PeerRequest<W, B>