pub struct NullHandler<Role: JrRole> { /* private fields */ }Expand description
Null handler that accepts no messages.
Implementations§
Trait Implementations§
Source§impl<Role: JrRole> JrMessageHandler for NullHandler<Role>
impl<Role: JrRole> JrMessageHandler for NullHandler<Role>
Source§fn describe_chain(&self) -> impl Debug
fn describe_chain(&self) -> impl Debug
Returns a debug description of the handler chain for diagnostics
Source§async fn handle_message(
&mut self,
message: MessageCx,
_cx: JrConnectionCx<Role>,
) -> Result<Handled<MessageCx>, Error>
async fn handle_message( &mut self, message: MessageCx, _cx: JrConnectionCx<Role>, ) -> Result<Handled<MessageCx>, Error>
Attempt to claim an incoming message (request or notification). Read more
Auto Trait Implementations§
impl<Role> Freeze for NullHandler<Role>where
Role: Freeze,
impl<Role> RefUnwindSafe for NullHandler<Role>where
Role: RefUnwindSafe,
impl<Role> Send for NullHandler<Role>
impl<Role> Sync for NullHandler<Role>
impl<Role> Unpin for NullHandler<Role>where
Role: Unpin,
impl<Role> UnwindSafe for NullHandler<Role>where
Role: UnwindSafe,
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