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§
Sourcefn clone_box(&self) -> Box<dyn BoxableListener<In, Out>>
fn clone_box(&self) -> Box<dyn BoxableListener<In, Out>>
Clone the listener 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