quic_rpc::transport::boxed

Trait BoxableListener

Source
pub trait BoxableListener<In: RpcMessage, Out: RpcMessage>:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn clone_box(&self) -> Box<dyn BoxableListener<In, Out>>;
    fn accept_bi_boxed(&self) -> AcceptFuture<'_, In, Out> ;
    fn local_addr(&self) -> &[LocalAddr];
}
Expand description

A boxable listener

Required Methods§

Source

fn clone_box(&self) -> Box<dyn BoxableListener<In, Out>>

Clone the listener and box it

Source

fn accept_bi_boxed(&self) -> AcceptFuture<'_, In, Out>

Accept a channel from a remote client

Source

fn local_addr(&self) -> &[LocalAddr]

Get the local address

Implementors§

Source§

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

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableListener<In, Out> for IrohListener<In, Out>

Source§

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