Enum meio::system::System [−][src]
pub enum System {}
Expand description
Virtual actor that represents the system/environment.
Implementations
Spawns a standalone Actor
that has no Supervisor
.
pub async fn spawn_and_wait<A>(actor: A) where
A: Actor + StartedBy<Self> + InterruptedBy<Self>,
pub async fn spawn_and_wait<A>(actor: A) where
A: Actor + StartedBy<Self> + InterruptedBy<Self>,
Spawns an Actor
and wait for its termination (normally or by SIGINT
interruption).
pub async fn wait_or_interrupt<A>(address: Address<A>) -> Result<(), Error> where
A: Actor + InterruptedBy<Self>,
pub async fn wait_or_interrupt<A>(address: Address<A>) -> Result<(), Error> where
A: Actor + InterruptedBy<Self>,
Waits either Actor
interrupted or terminated.
If user sends SIGINT
signal than the Actor
will receive InterruptedBy<System>
event,
but for the second signal the function just returned to let the app terminate without waiting
for any active task.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for System
impl UnwindSafe for System