pub trait GhostControlSender<E>: GhostChannelSender<E>where
    E: GhostEvent,
{ fn ghost_actor_shutdown(
        &self
    ) -> MustBoxFuture<'static, Result<(), GhostError>> ; fn ghost_actor_shutdown_immediate(
        &self
    ) -> MustBoxFuture<'static, Result<(), GhostError>> ; fn ghost_actor_is_active(&self) -> bool; }
Expand description

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

Required Methods§

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

Shutdown the actor immediately. All pending tasks will error.

Returns true if the receiving actor is still running.

Implementors§