[][src]Struct ghost_actor::actor_builder::GhostActorControl

pub struct GhostActorControl { /* fields omitted */ }

This struct controls how a running actor functions. If you wish to implement your own GhostChannelSender, you'll use this to control the actor at the receiving end.

Implementations

impl GhostActorControl[src]

pub fn ghost_actor_shutdown(&self) -> GhostFuture<()>[src]

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

pub fn ghost_actor_shutdown_immediate(&self) -> GhostFuture<()>[src]

Shutdown the actor immediately. All pending tasks will error.

pub fn ghost_actor_active(&self) -> bool[src]

Returns true if the receiving actor is still running.

Trait Implementations

impl Clone for GhostActorControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.