[][src]Struct meio::terminator::Stage

pub struct Stage { /* fields omitted */ }

Tracks supervised activities and tries to terminate them in parallel.

Implementations

impl Stage[src]

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

Is it empty? Can be used for cases when you need to terminate an Actor when the background task finished. For example if a background task processes network interactions and a session Actor completely related to it. But Actor can still have terminate method to unregister session and did something like that.

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

Is Stage completely finished?

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

Is it terminating because Shutdown signal received yet.

pub fn insert(&mut self, controller: Controller)[src]

Inserts a Controller to spervise it. The method requires a Controller (not Id), because it will send shutdown signal if the Stage will receive Shutdown signal from the Actor that holds and manages that Stage instance.

Auto Trait Implementations

impl !RefUnwindSafe for Stage

impl Send for Stage

impl Sync for Stage

impl Unpin for Stage

impl !UnwindSafe for Stage

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,