Struct actix::System [] [src]

#[must_use = "System must be run"]
pub struct System { /* fields omitted */ }

Methods

impl System
[src]

[src]

This function returns system address. System::init has to be called before, otherwise get function panics.

[src]

Initialize system

[src]

Returns handle to current event loop. Same as Arbiter::handle()

[src]

This function will start tokio event loop and will finish once the SystemExit get received. Once SystemExit message get received, process exits with code encoded in message.

Trait Implementations

impl Actor for System
[src]

[src]

Method is called when actor get polled first time.

[src]

Method is called when context's stream finishes. By default returns ActorStatus::Done. Read more

impl MessageHandler<SystemExit> for System
[src]

The type of value that this message will resolved with if it is successful.

The type of error that this message will resolve with if it fails in a normal fashion.

If message handler is used for handling messages from Future or Stream, then InputError type has to be set to correspondent Error Read more

[src]

Method is called for every message received by this Actor

[src]

Method is called on error.