pub trait GhostControlSender<E>: GhostChannelSender<E>
where E: GhostEvent,
{ // Required methods 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§

source

fn ghost_actor_shutdown(&self) -> MustBoxFuture<'static, Result<(), GhostError>>

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

source

fn ghost_actor_shutdown_immediate( &self ) -> MustBoxFuture<'static, Result<(), GhostError>>

Shutdown the actor immediately. All pending tasks will error.

source

fn ghost_actor_is_active(&self) -> bool

Returns true if the receiving actor is still running.

Object Safety§

This trait is not object safe.

Implementors§