pub struct FnActor { /* private fields */ }Expand description
An actor that runs an async function per input.
Implementations§
Source§impl FnActor
impl FnActor
Sourcepub fn new(address: Address, f: ActorFn) -> Self
pub fn new(address: Address, f: ActorFn) -> Self
An actor at address running f for every input.
Sourcepub fn invokable<F, Fut>(f: F) -> ActorFactory
pub fn invokable<F, Fut>(f: F) -> ActorFactory
The factory of an invokable async function: on start it runs f on the invoke’s
parameters, and its result is the child’s done data (done.invoke.<id>); an error is a
failure, subject to vt:restart.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FnActor
impl !UnwindSafe for FnActor
impl Forget for FnActor
impl Freeze for FnActor
impl Move for FnActor
impl Send for FnActor
impl Sync for FnActor
impl Unpin for FnActor
impl UnsafeUnpin for FnActor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more