Struct muxrpc::PeerAsync
[−]
[src]
pub struct PeerAsync<W: AsyncWrite> { /* fields omitted */ }
An async initiated by the peer. Drop to ignore it, or use respond
or respond_err
to send a
response.
Methods
impl<W: AsyncWrite> PeerAsync<W>
[src]
pub fn respond<Res: Serialize>(self, res: &Res) -> PeerAsyncResponse<W>
[src]
Send the given response to the peer.
pub fn respond_error<E: Serialize>(self, err: &E) -> PeerAsyncResponse<W>
[src]
Send the given error response to the peer.