Trait holochain::prelude::dependencies::kitsune_p2p_types::dependencies::ghost_actor::GhostControlSender
source · 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§
sourcefn ghost_actor_shutdown(&self) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
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.
sourcefn ghost_actor_shutdown_immediate(
&self
) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
fn ghost_actor_shutdown_immediate( &self ) -> MustBoxFuture<'static, Result<(), GhostError>> ⓘ
Shutdown the actor immediately. All pending tasks will error.
sourcefn ghost_actor_is_active(&self) -> bool
fn ghost_actor_is_active(&self) -> bool
Returns true if the receiving actor is still running.