Struct forest_actor::init::Actor
source · [−]pub struct Actor;
Expand description
Init actor
Implementations
pub fn constructor<BS, RT>(
rt: &mut RT,
params: ConstructorParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn constructor<BS, RT>(
rt: &mut RT,
params: ConstructorParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Init actor constructor
pub fn exec<BS, RT>(
rt: &mut RT,
params: ExecParams
) -> Result<ExecReturn, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn exec<BS, RT>(
rt: &mut RT,
params: ExecParams
) -> Result<ExecReturn, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Exec init actor
Trait Implementations
fn invoke_method<BS, RT>(
rt: &mut RT,
method: MethodNum,
params: &Serialized
) -> Result<Serialized, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
fn invoke_method<BS, RT>(
rt: &mut RT,
method: MethodNum,
params: &Serialized
) -> Result<Serialized, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Invokes method with runtime on the actor’s code. Method number will match one defined by the Actor, and parameters will be serialized and used in execution Read more