Trait quic_rpc::transport::ConnectionErrors

source ·
pub trait ConnectionErrors: Debug + Clone + Send + Sync + 'static {
    type OpenError: RpcError;
    type SendError: RpcError;
    type RecvError: RpcError;
}
Expand description

Errors that can happen when creating and using a Connection or ServerEndpoint.

Required Associated Types§

source

type OpenError: RpcError

Error when opening or accepting a channel

source

type SendError: RpcError

Error when sending a message via a channel

source

type RecvError: RpcError

Error when receiving a message via a channel

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ConnectionErrors for DummyServerEndpoint

source§

impl<A: ConnectionErrors, B: ConnectionErrors, S: Service> ConnectionErrors for CombinedConnection<A, B, S>

§

type SendError = SendError<A, B>

§

type RecvError = RecvError<A, B>

§

type OpenError = OpenBiError<A, B>

source§

impl<A: ConnectionErrors, B: ConnectionErrors, S: Service> ConnectionErrors for CombinedServerEndpoint<A, B, S>

source§

impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for ServerEndpoint<In, Out>

source§

impl<S: Service> ConnectionErrors for Connection<S>

source§

impl<S: Service> ConnectionErrors for FlumeConnection<S>

source§

impl<S: Service> ConnectionErrors for FlumeServerEndpoint<S>

source§

impl<S: Service> ConnectionErrors for HyperConnection<S>

source§

impl<S: Service> ConnectionErrors for HyperServerEndpoint<S>

source§

impl<S: Service> ConnectionErrors for QuinnConnection<S>

source§

impl<S: Service> ConnectionErrors for QuinnServerEndpoint<S>