pub struct SpawnBuilderWithoutAddress<'a, A: Actor, F: FnOnce() -> A> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, A: Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A> SpawnBuilderWithoutAddress<'a, A, F>
impl<'a, A: Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A> SpawnBuilderWithoutAddress<'a, A, F>
Sourcepub fn with_addr(self, addr: Addr<A>) -> SpawnBuilderWithAddress<'a, A, F>
pub fn with_addr(self, addr: Addr<A>) -> SpawnBuilderWithAddress<'a, A, F>
Specify an existing Addr to use with this Actor.
Sourcepub fn with_capacity(
self,
capacity: impl Into<Capacity>,
) -> SpawnBuilderWithAddress<'a, A, F>
pub fn with_capacity( self, capacity: impl Into<Capacity>, ) -> SpawnBuilderWithAddress<'a, A, F>
Sourcepub fn with_default_capacity(self) -> SpawnBuilderWithAddress<'a, A, F>
pub fn with_default_capacity(self) -> SpawnBuilderWithAddress<'a, A, F>
Use the default capacity for the actor’s receiving channel.