[][src]Trait forest_message::Message

pub trait Message {
    fn from(&self) -> &Address;
fn to(&self) -> &Address;
fn sequence(&self) -> u64;
fn value(&self) -> &TokenAmount;
fn method_num(&self) -> MethodNum;
fn params(&self) -> &Serialized;
fn gas_price(&self) -> &TokenAmount;
fn gas_limit(&self) -> u64;
fn required_funds(&self) -> TokenAmount; }

Required methods

fn from(&self) -> &Address

Returns the from address of the message

fn to(&self) -> &Address

Returns the destination address of the message

fn sequence(&self) -> u64

Returns the message sequence or nonce

fn value(&self) -> &TokenAmount

Returns the amount sent in message

fn method_num(&self) -> MethodNum

Returns the method number to be called

fn params(&self) -> &Serialized

Returns the encoded parameters for the method call

fn gas_price(&self) -> &TokenAmount

gas_price returns gas price for the message

fn gas_limit(&self) -> u64

Returns the gas limit for the message

fn required_funds(&self) -> TokenAmount

Returns the required funds for the message

Loading content...

Implementors

impl Message for SignedMessage[src]

impl Message for UnsignedMessage[src]

Loading content...