SpawnBuilderWithoutAddress

Struct SpawnBuilderWithoutAddress 

Source
pub struct SpawnBuilderWithoutAddress<'a, A: Actor, F: FnOnce() -> A> { /* private fields */ }
Expand description

A builder for configuring Actor 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: Actor<Context = Context<<A as Actor>::Message>>, F: FnOnce() -> A> SpawnBuilderWithoutAddress<'a, A, F>

Source

pub fn with_addr(self, addr: Addr<A>) -> SpawnBuilderWithAddress<'a, A, F>

Specify an existing Addr to use with this Actor.

Source

pub fn with_capacity( self, capacity: impl Into<Capacity>, ) -> SpawnBuilderWithAddress<'a, A, F>

Specify a capacity for the actor’s receiving channel. Accepts Capacity or usize.

Source

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§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.