Struct linera_execution::MessageContext
source · pub struct MessageContext {
pub chain_id: ChainId,
pub is_bouncing: bool,
pub authenticated_signer: Option<Owner>,
pub refund_grant_to: Option<Account>,
pub height: BlockHeight,
pub certificate_hash: CryptoHash,
pub message_id: MessageId,
pub next_message_index: u32,
}Fields§
§chain_id: ChainIdThe current chain ID.
is_bouncing: boolWhether the message was rejected by the original receiver and is now bouncing back.
authenticated_signer: Option<Owner>The authenticated signer of the operation that created the message, if any.
refund_grant_to: Option<Account>Where to send a refund for the unused part of each grant after execution, if any.
height: BlockHeightThe current block height.
certificate_hash: CryptoHashThe hash of the remote certificate that created the message.
message_id: MessageIdThe ID of the message (based on the operation height and index in the remote certificate).
next_message_index: u32The index of the next message to be created.
Trait Implementations§
source§impl Clone for MessageContext
impl Clone for MessageContext
source§fn clone(&self) -> MessageContext
fn clone(&self) -> MessageContext
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 MessageContext
impl Debug for MessageContext
impl Copy for MessageContext
Auto Trait Implementations§
impl Freeze for MessageContext
impl RefUnwindSafe for MessageContext
impl Send for MessageContext
impl Sync for MessageContext
impl Unpin for MessageContext
impl UnwindSafe for MessageContext
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