MachineState

Trait MachineState 

Source
pub trait MachineState {
    // Required methods
    fn new<BS: Blockstore>(
        store: &BS,
        owner: Address,
        metadata: HashMap<String, String>,
    ) -> Result<Self, ActorError>
       where Self: Sized;
    fn init(&mut self, address: Address) -> Result<(), ActorError>;
    fn address(&self) -> MachineAddress;
    fn kind(&self) -> Kind;
    fn owner(&self) -> Address;
    fn metadata(&self) -> HashMap<String, String>;
}
Expand description

Trait that must be implemented by machine state.

Required Methods§

Source

fn new<BS: Blockstore>( store: &BS, owner: Address, metadata: HashMap<String, String>, ) -> Result<Self, ActorError>
where Self: Sized,

Source

fn init(&mut self, address: Address) -> Result<(), ActorError>

Source

fn address(&self) -> MachineAddress

Source

fn kind(&self) -> Kind

Source

fn owner(&self) -> Address

Source

fn metadata(&self) -> HashMap<String, String>

Implementors§