pub struct NullHandler;Expand description
Null handler that accepts no messages.
Implementations§
Source§impl NullHandler
impl NullHandler
Trait Implementations§
Source§impl Debug for NullHandler
impl Debug for NullHandler
Source§impl Default for NullHandler
impl Default for NullHandler
Source§impl<Counterpart: Role> HandleDispatchFrom<Counterpart> for NullHandler
impl<Counterpart: Role> HandleDispatchFrom<Counterpart> for NullHandler
Source§fn describe_chain(&self) -> impl Debug
fn describe_chain(&self) -> impl Debug
Returns a debug description of the registered handlers for diagnostics.
Source§async fn handle_dispatch_from(
&mut self,
message: Dispatch,
_cx: ConnectionTo<Counterpart>,
) -> Result<Handled<Dispatch>, Error>
async fn handle_dispatch_from( &mut self, message: Dispatch, _cx: ConnectionTo<Counterpart>, ) -> Result<Handled<Dispatch>, Error>
Attempt to claim an incoming message (request or notification). Read more
Auto Trait Implementations§
impl Freeze for NullHandler
impl RefUnwindSafe for NullHandler
impl Send for NullHandler
impl Sync for NullHandler
impl Unpin for NullHandler
impl UnsafeUnpin for NullHandler
impl UnwindSafe for NullHandler
Blanket Implementations§
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