Trait MessageInfo

Source
pub trait MessageInfo {
    // Required methods
    fn caller(&self) -> &Address;
    fn receiver(&self) -> &Address;
    fn value_received(&self) -> &TokenAmount;
}
Expand description

Message information available to the actor about executing message.

Required Methods§

Source

fn caller(&self) -> &Address

The address of the immediate calling actor. Always an ID-address.

Source

fn receiver(&self) -> &Address

The address of the actor receiving the message. Always an ID-address.

Source

fn value_received(&self) -> &TokenAmount

The value attached to the message being processed, implicitly added to current_balance() before method invocation.

Implementors§