Struct tonari_actor::SpawnBuilder
source · [−]Expand description
Implementations
sourceimpl<'a, A: 'static + Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A> SpawnBuilder<'a, A, F>
impl<'a, A: 'static + Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A> SpawnBuilder<'a, A, F>
sourcepub fn with_capacity(self, capacity: impl Into<Capacity>) -> Self
pub fn with_capacity(self, capacity: impl Into<Capacity>) -> Self
sourcepub fn run_and_block(self) -> Result<(), ActorError>
pub fn run_and_block(self) -> Result<(), ActorError>
Run this Actor on the current calling thread. This is a blocking call. This function will exit when the Actor has stopped.
Auto Trait Implementations
impl<'a, A, F> !RefUnwindSafe for SpawnBuilder<'a, A, F>
impl<'a, A, F> Send for SpawnBuilder<'a, A, F>where
F: Send,
impl<'a, A, F> Sync for SpawnBuilder<'a, A, F>where
F: Sync,
impl<'a, A, F> Unpin for SpawnBuilder<'a, A, F>where
F: Unpin,
impl<'a, A, F> !UnwindSafe for SpawnBuilder<'a, A, F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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