Struct muxrpc::InSync
[−]
[src]
pub struct InSync<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> InSync<W>
[src]
pub fn respond<Res: Serialize>(self, res: &Res) -> OutSyncResponse<W>
[src]
Send the given response to the peer.
pub fn respond_error<E: Serialize>(self, err: &E) -> OutSyncResponse<W>
[src]
Send the given error response to the peer.