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: ProgramId) -> Message
pub fn into_message(self, source: ProgramId) -> Message
Convert HandleMessage into Message.
Sourcepub fn into_stored(self, source: ProgramId) -> StoredMessage
pub fn into_stored(self, source: ProgramId) -> StoredMessage
Convert HandleMessage into StoredMessage.
Sourcepub fn into_dispatch(self, source: ProgramId) -> Dispatch
pub fn into_dispatch(self, source: ProgramId) -> Dispatch
Convert HandleMessage into Dispatch.
Sourcepub fn into_stored_dispatch(self, source: ProgramId) -> StoredDispatch
pub fn into_stored_dispatch(self, source: ProgramId) -> StoredDispatch
Convert HandleMessage into StoredDispatch.
Sourcepub fn destination(&self) -> ProgramId
pub fn destination(&self) -> ProgramId
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 copy 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 Decode for HandleMessage
impl Decode for HandleMessage
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for HandleMessage
impl Default for HandleMessage
Source§fn default() -> HandleMessage
fn default() -> HandleMessage
Returns the “default value” for a type. Read more
Source§impl Encode for HandleMessage
impl Encode for HandleMessage
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Hash for HandleMessage
impl Hash for HandleMessage
Source§impl Ord for HandleMessage
impl Ord for HandleMessage
Source§fn cmp(&self, other: &HandleMessage) -> Ordering
fn cmp(&self, other: &HandleMessage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HandleMessage
impl PartialEq for HandleMessage
Source§impl PartialOrd for HandleMessage
impl PartialOrd for HandleMessage
Source§impl TypeInfo for HandleMessage
impl TypeInfo for HandleMessage
impl EncodeLike 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