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::Message>,
) -> SpawnBuilderWithAddress<'a, A, F>
pub fn with_addr( self, addr: Addr<A::Message>, ) -> 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.
Auto Trait Implementations§
impl<'a, A, F> Freeze for SpawnBuilderWithoutAddress<'a, A, F>where
F: Freeze,
impl<'a, A, F> !RefUnwindSafe for SpawnBuilderWithoutAddress<'a, A, F>
impl<'a, A, F> Send for SpawnBuilderWithoutAddress<'a, A, F>where
F: Send,
impl<'a, A, F> Sync for SpawnBuilderWithoutAddress<'a, A, F>where
F: Sync,
impl<'a, A, F> Unpin for SpawnBuilderWithoutAddress<'a, A, F>where
F: Unpin,
impl<'a, A, F> !UnwindSafe for SpawnBuilderWithoutAddress<'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