pub struct HandleMessage { /* private fields */ }Expand description
Message for Handle entry point. Represents a standard message that sends between actors.
Implementations§
Source§impl HandleMessage
impl HandleMessage
Sourcepub fn from_packet(id: MessageId, packet: HandlePacket) -> Self
pub fn from_packet(id: MessageId, packet: HandlePacket) -> Self
Create HandleMessage from HandlePacket.
Sourcepub fn into_message(self, source: ActorId) -> Message
pub fn into_message(self, source: ActorId) -> Message
Convert HandleMessage into Message.
Sourcepub fn into_stored(self, source: ActorId) -> StoredMessage
pub fn into_stored(self, source: ActorId) -> StoredMessage
Convert HandleMessage into StoredMessage.
Sourcepub fn into_dispatch(self, source: ActorId) -> Dispatch
pub fn into_dispatch(self, source: ActorId) -> Dispatch
Convert HandleMessage into Dispatch.
Sourcepub fn into_stored_dispatch(self, source: ActorId) -> StoredDispatch
pub fn into_stored_dispatch(self, source: ActorId) -> StoredDispatch
Convert HandleMessage into StoredDispatch.
Sourcepub fn destination(&self) -> ActorId
pub fn destination(&self) -> ActorId
Message destination.
Sourcepub fn payload_bytes(&self) -> &[u8]
pub fn payload_bytes(&self) -> &[u8]
Message payload bytes.
Trait Implementations§
Source§impl Clone for HandleMessage
impl Clone for HandleMessage
Source§fn clone(&self) -> HandleMessage
fn clone(&self) -> HandleMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandleMessage
impl Debug for HandleMessage
Source§impl PartialEq for HandleMessage
impl PartialEq for HandleMessage
impl Eq for HandleMessage
impl StructuralPartialEq for HandleMessage
Auto Trait Implementations§
impl Freeze for HandleMessage
impl RefUnwindSafe for HandleMessage
impl Send for HandleMessage
impl Sync for HandleMessage
impl Unpin for HandleMessage
impl UnwindSafe for HandleMessage
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