pub struct Event<M: Message> {
pub message: M,
pub source: Option<ActorId>,
pub target: ActorId,
}
Expand description
Event
Wraps a message and associated metadata.
Fields§
§message: M
The wrapped message
source: Option<ActorId>
The message’s source. None if the message was sent outside of any specific actor.
target: ActorId
The message’s original target.
Trait Implementations§
Auto Trait Implementations§
impl<M> RefUnwindSafe for Event<M>where M: RefUnwindSafe,
impl<M> Send for Event<M>
impl<M> Sync for Event<M>
impl<M> Unpin for Event<M>where M: Unpin,
impl<M> UnwindSafe for Event<M>where M: 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