pub struct RegisterRecipient<M>(pub Recipient<M>)
where
M: Message + Send,
M::Result: Send;
Tuple Fields§
§0: Recipient<M>
Trait Implementations§
Source§impl Handler<RegisterRecipient<NodeUpdate>> for NodeControl
impl Handler<RegisterRecipient<NodeUpdate>> for NodeControl
Source§type Result = Result<Uuid, Infallible>
type Result = Result<Uuid, Infallible>
The type of value that this handler will return. Read more
Source§fn handle(
&mut self,
msg: RegisterRecipient<NodeUpdate>,
ctx: &mut Self::Context,
) -> Self::Result
fn handle( &mut self, msg: RegisterRecipient<NodeUpdate>, ctx: &mut Self::Context, ) -> Self::Result
This method is called for every message received by this actor.
Auto Trait Implementations§
impl<M> Freeze for RegisterRecipient<M>
impl<M> !RefUnwindSafe for RegisterRecipient<M>
impl<M> Send for RegisterRecipient<M>
impl<M> Sync for RegisterRecipient<M>
impl<M> Unpin for RegisterRecipient<M>
impl<M> !UnwindSafe for RegisterRecipient<M>
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