Struct meio::StopReceiver[][src]

pub struct StopReceiver { /* fields omitted */ }

Contains a receiver with a status of a task.

Implementations

impl StopReceiver[src]

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

Returns true is the task can be alive.

pub fn into_future(self) -> Pin<Box<dyn StopSignal>>[src]

Returns a Future that completed when Done signal received.

pub async fn or<Fut>(&mut self, fut: Fut) -> Result<Fut::Output, TaskStopped> where
    Fut: Future
[src]

Tries to execute provided Future to completion if the ShutdownReceived won’t interrupted during that time.

Trait Implementations

impl Clone for StopReceiver[src]

impl Debug for StopReceiver[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.