pub struct BoxedListener<In: RpcMessage, Out: RpcMessage>(/* private fields */);
Expand description
A boxed listener
Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> BoxedListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> BoxedListener<In, Out>
Sourcepub fn new(x: impl BoxableListener<In, Out>) -> Self
pub fn new(x: impl BoxableListener<In, Out>) -> Self
Wrap a boxable listener into a box, transforming all the types to concrete types
Trait Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> Clone for BoxedListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Clone for BoxedListener<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for BoxedListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for BoxedListener<In, Out>
Source§impl<In: Debug + RpcMessage, Out: Debug + RpcMessage> Debug for BoxedListener<In, Out>
impl<In: Debug + RpcMessage, Out: Debug + RpcMessage> Debug for BoxedListener<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> Listener for BoxedListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Listener for BoxedListener<In, Out>
Source§fn accept(
&self,
) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::AcceptError>> + Send
fn accept( &self, ) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::AcceptError>> + Send
Accept a new typed bidirectional channel on any of the connections we
have currently opened.
Source§fn local_addr(&self) -> &[LocalAddr]
fn local_addr(&self) -> &[LocalAddr]
The local addresses this endpoint is bound to.
Source§impl<In: RpcMessage, Out: RpcMessage> StreamTypes for BoxedListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> StreamTypes for BoxedListener<In, Out>
Source§type RecvStream = RecvStream<In>
type RecvStream = RecvStream<In>
Receive side of a bidirectional typed channel
Auto Trait Implementations§
impl<In, Out> Freeze for BoxedListener<In, Out>
impl<In, Out> !RefUnwindSafe for BoxedListener<In, Out>
impl<In, Out> Send for BoxedListener<In, Out>
impl<In, Out> Sync for BoxedListener<In, Out>
impl<In, Out> Unpin for BoxedListener<In, Out>
impl<In, Out> !UnwindSafe for BoxedListener<In, Out>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)