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§
sourcefn clone_box(&self) -> Box<dyn BoxableServerEndpoint<In, Out>>
fn clone_box(&self) -> Box<dyn BoxableServerEndpoint<In, Out>>
Clone the server endpoint and box it
sourcefn accept_bi_boxed(&self) -> AcceptFuture<'_, In, Out> ⓘ
fn accept_bi_boxed(&self) -> AcceptFuture<'_, In, Out> ⓘ
Accept a channel from a remote client
sourcefn local_addr(&self) -> &[LocalAddr]
fn local_addr(&self) -> &[LocalAddr]
Get the local address