pub struct IncomingMessage { /* private fields */ }Expand description
Incoming message.
Used for program execution.
Implementations§
Source§impl IncomingMessage
impl IncomingMessage
Sourcepub fn new(
id: MessageId,
source: ActorId,
payload: Payload,
gas_limit: GasLimit,
value: Value,
details: Option<MessageDetails>,
) -> Self
pub fn new( id: MessageId, source: ActorId, payload: Payload, gas_limit: GasLimit, value: Value, details: Option<MessageDetails>, ) -> Self
Create new IncomingMessage.
Sourcepub fn into_stored(self, destination: ActorId) -> StoredMessage
pub fn into_stored(self, destination: ActorId) -> StoredMessage
Convert IncomingMessage into gasless StoredMessage.
Sourcepub fn details(&self) -> Option<MessageDetails>
pub fn details(&self) -> Option<MessageDetails>
Message details.
Sourcepub fn is_error_reply(&self) -> bool
pub fn is_error_reply(&self) -> bool
Returns bool defining if message is error reply.
Trait Implementations§
Source§impl Clone for IncomingMessage
impl Clone for IncomingMessage
Source§fn clone(&self) -> IncomingMessage
fn clone(&self) -> IncomingMessage
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 IncomingMessage
impl Debug for IncomingMessage
Source§impl PartialEq for IncomingMessage
impl PartialEq for IncomingMessage
impl Eq for IncomingMessage
impl StructuralPartialEq for IncomingMessage
Auto Trait Implementations§
impl Freeze for IncomingMessage
impl RefUnwindSafe for IncomingMessage
impl Send for IncomingMessage
impl Sync for IncomingMessage
impl Unpin for IncomingMessage
impl UnwindSafe for IncomingMessage
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