Enum muxrpc::IncomingRpc [] [src]

pub enum IncomingRpc<R: AsyncRead, W: AsyncWrite> {
    Source(RpcSink<W>),
    Sink(RpcStream<R, Value, Value>),
    Duplex(RpcSink<W>, RpcStream<R, Value, Value>),
    Async(PeerAsync<W>),
    Sync(PeerSync<W>),
}

An incoming packet, initiated by the peer.

Variants

A source request. You get a sink, the peer got a stream.

A sink request. You get a stream, the peer got a sink.

A duplex request. Both peers get a stream and a sink.

An async request. You get an PeerAsync, the peer got an AsyncResponse.

A sync request. You get an PeerSync, the peer got an AsyncResponse.

Trait Implementations

Auto Trait Implementations

impl<R, W> !Send for IncomingRpc<R, W>

impl<R, W> !Sync for IncomingRpc<R, W>