Struct ghost_actor::GhostSender
source · pub struct GhostSender<E: GhostEvent>(_, _);
Expand description
A provided GhostSender (impl GhostChannelSender) implementation.
Trait Implementations§
source§impl<E: GhostEvent> Clone for GhostSender<E>
impl<E: GhostEvent> Clone for GhostSender<E>
source§impl<E: GhostEvent> GhostChannelSender<E> for GhostSender<E>
impl<E: GhostEvent> GhostChannelSender<E> for GhostSender<E>
source§fn ghost_actor_channel_send(&self, event: E) -> GhostFuture<()>
fn ghost_actor_channel_send(&self, event: E) -> GhostFuture<()>
Forward a GhostEvent along this channel.
source§impl<E: GhostEvent> GhostControlSender<E> for GhostSender<E>
impl<E: GhostEvent> GhostControlSender<E> for GhostSender<E>
source§fn ghost_actor_shutdown(&self) -> GhostFuture<()>
fn ghost_actor_shutdown(&self) -> GhostFuture<()>
Shutdown the actor once all pending messages have been processed.
Future completes when the actor is shutdown.
source§fn ghost_actor_shutdown_immediate(&self) -> GhostFuture<()>
fn ghost_actor_shutdown_immediate(&self) -> GhostFuture<()>
Shutdown the actor immediately. All pending tasks will error.
source§fn ghost_actor_is_active(&self) -> bool
fn ghost_actor_is_active(&self) -> bool
Returns true if the receiving actor is still running.