Enum meio::system::System [−][src]
pub enum System {}
Virtual actor that represents the system/environment.
Implementations
impl System
[src]
impl System
[src]pub fn spawn<A>(actor: A) -> Address<A> where
A: Actor + StartedBy<Self>,
[src]
pub fn spawn<A>(actor: A) -> Address<A> where
A: Actor + StartedBy<Self>,
[src]Spawns a standalone Actor
that has no Supervisor
.
pub async fn spawn_and_wait<A>(actor: A) where
A: Actor + StartedBy<Self> + InterruptedBy<Self>,
[src]
pub async fn spawn_and_wait<A>(actor: A) where
A: Actor + StartedBy<Self> + InterruptedBy<Self>,
[src]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>,
[src]
pub async fn wait_or_interrupt<A>(address: Address<A>) -> Result<(), Error> where
A: Actor + InterruptedBy<Self>,
[src]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.