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