pub enum DispatchEnvelope {
Msg {
src: ActorPath,
dst: ActorPath,
msg: DispatchData,
},
ForwardedMsg {
msg: NetMessage,
},
Registration(RegistrationEnvelope),
Event(Box<dyn DispatchEvent>),
LockedChunk(BufferChunk),
}Expand description
Envelope with messages for the system’sdispatcher
Variants§
Msg
A potential network message that must be resolved
Fields
§
msg: DispatchDataThe actual data to be dispatched
ForwardedMsg
A message that may already be partially serialised
Fields
§
msg: NetMessageThe message being forwarded
Registration(RegistrationEnvelope)
A request for actor path registration
Event(Box<dyn DispatchEvent>)
A transport-specific dispatcher event.
LockedChunk(BufferChunk)
Killed components send their BufferChunks to the Dispatcher for safe de-allocation
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DispatchEnvelope
impl !RefUnwindSafe for DispatchEnvelope
impl Send for DispatchEnvelope
impl !Sync for DispatchEnvelope
impl Unpin for DispatchEnvelope
impl UnsafeUnpin for DispatchEnvelope
impl !UnwindSafe for DispatchEnvelope
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