pub struct InitMessage { /* private fields */ }Expand description
Message for Init entry point. Used to initiate a newly created program.
Implementations§
Source§impl InitMessage
impl InitMessage
Sourcepub fn from_packet(id: MessageId, packet: InitPacket) -> Self
pub fn from_packet(id: MessageId, packet: InitPacket) -> Self
Create InitMessage from InitPacket.
Sourcepub fn into_message(self, source: ActorId) -> Message
pub fn into_message(self, source: ActorId) -> Message
Convert InitMessage into Message.
Sourcepub fn into_stored(self, source: ActorId) -> StoredMessage
pub fn into_stored(self, source: ActorId) -> StoredMessage
Convert InitMessage into StoredMessage.
Sourcepub fn into_dispatch(self, source: ActorId) -> Dispatch
pub fn into_dispatch(self, source: ActorId) -> Dispatch
Convert InitMessage into Dispatch.
Sourcepub fn into_stored_dispatch(self, source: ActorId) -> StoredDispatch
pub fn into_stored_dispatch(self, source: ActorId) -> StoredDispatch
Convert InitMessage 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 InitMessage
impl Clone for InitMessage
Source§fn clone(&self) -> InitMessage
fn clone(&self) -> InitMessage
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 InitMessage
impl Debug for InitMessage
Source§impl PartialEq for InitMessage
impl PartialEq for InitMessage
impl Eq for InitMessage
impl StructuralPartialEq for InitMessage
Auto Trait Implementations§
impl Freeze for InitMessage
impl RefUnwindSafe for InitMessage
impl Send for InitMessage
impl Sync for InitMessage
impl Unpin for InitMessage
impl UnwindSafe for InitMessage
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