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