pub struct SpawnBuilder<'a, A: Actor, F: FnOnce() -> A> { /* fields omitted */ }
Expand description
A builder for specifying how to spawn an Actor.
You can specify your own Addr for the Actor,
the capacity of the Actor’s inbox, and you can specify
whether to spawn the Actor into its own thread or block
on the current calling thread.
Specify a capacity for the actor’s receiving channel. Accepts Capacity or usize.
Specify an existing Addr to use with this Actor.
Run this Actor on the current calling thread. This is a
blocking call. This function will exit when the Actor
has stopped.
Spawn this Actor into a new thread managed by the System.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.