pub struct ReplyMessage { /* private fields */ }Expand description
Message for Reply entry point.
ReplyMessage is unique because of storing MessageId from message on what it replies, and can be the only one per some message execution.
Implementations§
Source§impl ReplyMessage
impl ReplyMessage
Sourcepub fn from_packet(id: MessageId, packet: ReplyPacket) -> Self
pub fn from_packet(id: MessageId, packet: ReplyPacket) -> Self
Create ReplyMessage from ReplyPacket.
Sourcepub fn system(
origin_msg_id: MessageId,
payload: Payload,
value: Value,
err: impl Into<ErrorReplyReason>,
) -> Self
pub fn system( origin_msg_id: MessageId, payload: Payload, value: Value, err: impl Into<ErrorReplyReason>, ) -> Self
Create new system generated ReplyMessage.
Sourcepub fn into_message(
self,
program_id: ActorId,
destination: ActorId,
origin_msg_id: MessageId,
) -> Message
pub fn into_message( self, program_id: ActorId, destination: ActorId, origin_msg_id: MessageId, ) -> Message
Convert ReplyMessage into Message.
Sourcepub fn into_stored(
self,
program_id: ActorId,
destination: ActorId,
origin_msg_id: MessageId,
) -> StoredMessage
pub fn into_stored( self, program_id: ActorId, destination: ActorId, origin_msg_id: MessageId, ) -> StoredMessage
Convert ReplyMessage into StoredMessage.
Sourcepub fn into_dispatch(
self,
source: ActorId,
destination: ActorId,
origin_msg_id: MessageId,
) -> Dispatch
pub fn into_dispatch( self, source: ActorId, destination: ActorId, origin_msg_id: MessageId, ) -> Dispatch
Convert ReplyMessage into Dispatch.
Sourcepub fn into_stored_dispatch(
self,
source: ActorId,
destination: ActorId,
origin_msg_id: MessageId,
) -> StoredDispatch
pub fn into_stored_dispatch( self, source: ActorId, destination: ActorId, origin_msg_id: MessageId, ) -> StoredDispatch
Convert ReplyMessage into StoredDispatch.
Sourcepub fn payload_bytes(&self) -> &[u8]
pub fn payload_bytes(&self) -> &[u8]
Message payload bytes.
Trait Implementations§
Source§impl Clone for ReplyMessage
impl Clone for ReplyMessage
Source§fn clone(&self) -> ReplyMessage
fn clone(&self) -> ReplyMessage
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 ReplyMessage
impl Debug for ReplyMessage
Source§impl PartialEq for ReplyMessage
impl PartialEq for ReplyMessage
impl Eq for ReplyMessage
impl StructuralPartialEq for ReplyMessage
Auto Trait Implementations§
impl Freeze for ReplyMessage
impl RefUnwindSafe for ReplyMessage
impl Send for ReplyMessage
impl Sync for ReplyMessage
impl Unpin for ReplyMessage
impl UnwindSafe for ReplyMessage
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