pub struct DummyListener<In, Out> { /* private fields */ }
Expand description
A dummy listener that does nothing
This can be useful as a default if you want to configure an optional listener.
Trait Implementations§
Source§impl<In, Out> Clone for DummyListener<In, Out>
impl<In, Out> Clone for DummyListener<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for DummyListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for DummyListener<In, Out>
Source§type RecvError = Infallible
type RecvError = Infallible
Error when receiving a message via a channel
Source§type SendError = Infallible
type SendError = Infallible
Error when sending a message via a channel
Source§type OpenError = Infallible
type OpenError = Infallible
Error when opening a channel
Source§type AcceptError = Infallible
type AcceptError = Infallible
Error when accepting a channel
Source§impl<In: Default, Out: Default> Default for DummyListener<In, Out>
impl<In: Default, Out: Default> Default for DummyListener<In, Out>
Source§fn default() -> DummyListener<In, Out>
fn default() -> DummyListener<In, Out>
Returns the “default value” for a type. Read more
Source§impl<In: RpcMessage, Out: RpcMessage> Listener for DummyListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Listener for DummyListener<In, Out>
Source§async fn accept(
&self,
) -> Result<(Self::SendSink, Self::RecvStream), Self::AcceptError>
async fn accept( &self, ) -> Result<(Self::SendSink, Self::RecvStream), Self::AcceptError>
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 DummyListener<In, Out>
impl<In: RpcMessage, Out: RpcMessage> StreamTypes for DummyListener<In, Out>
Source§type RecvStream = Pending<Result<In, <DummyListener<In, Out> as ConnectionErrors>::RecvError>>
type RecvStream = Pending<Result<In, <DummyListener<In, Out> as ConnectionErrors>::RecvError>>
Receive side of a bidirectional typed channel
Auto Trait Implementations§
impl<In, Out> Freeze for DummyListener<In, Out>
impl<In, Out> RefUnwindSafe for DummyListener<In, Out>where
In: RefUnwindSafe,
Out: RefUnwindSafe,
impl<In, Out> Send for DummyListener<In, Out>
impl<In, Out> Sync for DummyListener<In, Out>
impl<In, Out> Unpin for DummyListener<In, Out>
impl<In, Out> UnwindSafe for DummyListener<In, Out>where
In: UnwindSafe,
Out: UnwindSafe,
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
)