Struct fil_actor_init::Actor
source · [−]pub struct Actor;Expand description
Init actor
Implementations
sourceimpl Actor
impl Actor
sourcepub 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
sourcepub 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
sourceimpl ActorCode for Actor
impl ActorCode for Actor
sourcefn invoke_method<BS, RT>(
rt: &mut RT,
method: MethodNum,
params: &RawBytes
) -> Result<RawBytes, ActorError> where
BS: Blockstore,
RT: Runtime<BS>,
fn invoke_method<BS, RT>(
rt: &mut RT,
method: MethodNum,
params: &RawBytes
) -> Result<RawBytes, 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
Auto Trait Implementations
impl RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl UnwindSafe for Actor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more