[][src]Trait ghost_actor::GhostControlSender

pub trait GhostControlSender<E: GhostEvent>: GhostChannelSender<E> {
    fn ghost_actor_shutdown(&self) -> GhostFuture<()>;
fn ghost_actor_shutdown_immediate(&self) -> GhostFuture<()>;
fn ghost_actor_is_active(&self) -> bool; }

A full sender that can control the actor side of the channel.

Required methods

fn ghost_actor_shutdown(&self) -> GhostFuture<()>

Shutdown the actor once all pending messages have been processed. Future completes when the actor is shutdown.

fn ghost_actor_shutdown_immediate(&self) -> GhostFuture<()>

Shutdown the actor immediately. All pending tasks will error.

fn ghost_actor_is_active(&self) -> bool

Returns true if the receiving actor is still running.

Loading content...

Implementors

Loading content...