Struct meio::StopReceiver [−][src]
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]
Fut: Future,
Tries to execute provided Future
to completion if the ShutdownReceived
won’t interrupted during that time.
Trait Implementations
impl Clone for StopReceiver
[src]
fn clone(&self) -> StopReceiver
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StopReceiver
[src]
Auto Trait Implementations
impl !RefUnwindSafe for StopReceiver
impl Send for StopReceiver
impl Sync for StopReceiver
impl Unpin for StopReceiver
impl !UnwindSafe for StopReceiver
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,