[−][src]Struct meio::terminator::Stage
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,