pub struct AsyncSpawnBuilderWithoutAddress<'a, A: AsyncActor, F: IntoFuture<Output = A>> { /* private fields */ }Expand description
A builder for configuring AsyncActor spawning.
You can specify your own Addr for the Actor, or let the system create
a new address with either provided or default capacity.
Implementations§
Source§impl<'a, A: AsyncActor, F: IntoFuture<Output = A>> AsyncSpawnBuilderWithoutAddress<'a, A, F>
impl<'a, A: AsyncActor, F: IntoFuture<Output = A>> AsyncSpawnBuilderWithoutAddress<'a, A, F>
Sourcepub fn with_addr(
self,
addr: Addr<A::Message>,
) -> AsyncSpawnBuilderWithAddress<'a, A, F>
pub fn with_addr( self, addr: Addr<A::Message>, ) -> AsyncSpawnBuilderWithAddress<'a, A, F>
Specify an existing Addr to use with this Actor.
Sourcepub fn with_capacity(
self,
capacity: impl Into<Capacity>,
) -> AsyncSpawnBuilderWithAddress<'a, A, F>
pub fn with_capacity( self, capacity: impl Into<Capacity>, ) -> AsyncSpawnBuilderWithAddress<'a, A, F>
Sourcepub fn with_default_capacity(self) -> AsyncSpawnBuilderWithAddress<'a, A, F>
pub fn with_default_capacity(self) -> AsyncSpawnBuilderWithAddress<'a, A, F>
Use the default capacity for the actor’s receiving channel.
Auto Trait Implementations§
impl<'a, A, F> Freeze for AsyncSpawnBuilderWithoutAddress<'a, A, F>where
F: Freeze,
impl<'a, A, F> !RefUnwindSafe for AsyncSpawnBuilderWithoutAddress<'a, A, F>
impl<'a, A, F> Send for AsyncSpawnBuilderWithoutAddress<'a, A, F>where
F: Send,
impl<'a, A, F> Sync for AsyncSpawnBuilderWithoutAddress<'a, A, F>where
F: Sync,
impl<'a, A, F> Unpin for AsyncSpawnBuilderWithoutAddress<'a, A, F>where
F: Unpin,
impl<'a, A, F> !UnwindSafe for AsyncSpawnBuilderWithoutAddress<'a, A, F>
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