Trait quic_rpc::transport::boxed::BoxableServerEndpoint

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

A boxable server endpoint

Required Methods§

source

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

Clone the server endpoint 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§