pub struct SpawnOpts { /* private fields */ }
Expand description

Options with which an actor will be spawned.

It is possible to specify:

  • the set of actor-ids the newly spawned actor will be immediately linked to;
  • the sizes for msg-inbox and signal-inbox;
  • exit-handler;
  • a “bag” of arbitrary properties (identified by their types).

Implementations

create new SpawnOpts

add a linked actor

iterator of linked actors

specify the capacity limit for msg-inbox

the capacity limit for msg-inbox

specify the capacity limit for signal-inbox

the capacity limit for signal-inbox

add arbitrary data into the Context

Specify the exit-handler for the spawned actor

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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