quic_rpc::transport

Trait ConnectionErrors

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

Errors that can happen when creating and using a Connector or Listener.

Required Associated Types§

Source

type SendError: RpcError

Error when sending a message via a channel

Source

type RecvError: RpcError

Error when receiving a message via a channel

Source

type OpenError: RpcError

Error when opening a channel

Source

type AcceptError: RpcError

Error when accepting a channel

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A: ConnectionErrors, B: ConnectionErrors> ConnectionErrors for CombinedConnector<A, B>

Source§

impl<A: ConnectionErrors, B: ConnectionErrors> ConnectionErrors for CombinedListener<A, B>

Source§

impl<In, Out, C> ConnectionErrors for MappedConnector<In, Out, C>

Source§

impl<In, Out, C> ConnectionErrors for MappedStreamTypes<In, Out, C>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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