pub struct ActorSpawner<A: Actor> { /* private fields */ }Expand description
ActorSpawner is useful when you need to store or pass somewhere and object
capable of spawning actors.
You may create one out of a simple closure:
let spawner = ActorSpawner::from(|| MyActor);Implementations§
Auto Trait Implementations§
impl<A> Freeze for ActorSpawner<A>
impl<A> !RefUnwindSafe for ActorSpawner<A>
impl<A> Send for ActorSpawner<A>
impl<A> !Sync for ActorSpawner<A>
impl<A> Unpin for ActorSpawner<A>
impl<A> !UnwindSafe for ActorSpawner<A>
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