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.