#[repr(C, packed(1))]pub struct MessageContext {
pub origin: u64,
pub nonce: u64,
pub caller: u64,
pub receiver: u64,
pub method_number: u64,
pub value_received: TokenAmount,
pub gas_premium: TokenAmount,
pub flags: ContextFlags,
}Fields§
§origin: u64The current call’s origin actor ID.
nonce: u64The nonce from the explicit message.
caller: u64The caller’s actor ID.
receiver: u64The receiver’s actor ID (i.e. ourselves).
method_number: u64The method number from the message.
value_received: TokenAmountThe value that was received.
The gas premium being paid by the currently executing message (on top of the base-fee). This may be less than the premium specified in the message if the base fee plus the premium would exceed the fee cap.
flags: ContextFlagsFlags pertaining to the currently executing actor’s invocation context.
Trait Implementations§
Source§impl Clone for MessageContext
impl Clone for MessageContext
Source§fn clone(&self) -> MessageContext
fn clone(&self) -> MessageContext
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 MessageContext
impl Debug for MessageContext
Source§impl PartialEq for MessageContext
impl PartialEq for MessageContext
impl Copy for MessageContext
impl Eq for MessageContext
impl StructuralPartialEq for MessageContext
impl SyscallSafe 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