Struct stopper::Stopper[][src]

pub struct Stopper(_);

Implementations

impl Stopper[src]

pub fn new() -> Self[src]

pub fn stop(&self)[src]

pub fn stop_stream<S: Stream>(&self, stream: S) -> StreamStopper<S>[src]

pub fn insert(&self, cx: &Context<'_>) -> usize[src]

pub fn replace(&self, waker_id: &mut Option<usize>, cx: &Context<'_>)[src]

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

pub fn remove_waker(&self, id: usize)[src]

pub fn stop_future<F: Future>(&self, future: F) -> FutureStopper<F>

Notable traits for FutureStopper<F>

impl<F: Future> Future for FutureStopper<F> type Output = Option<<F as Future>::Output>;
[src]

Trait Implementations

impl Clone for Stopper[src]

impl Debug for Stopper[src]

Auto Trait Implementations

impl RefUnwindSafe for Stopper

impl Send for Stopper

impl Sync for Stopper

impl Unpin for Stopper

impl UnwindSafe for Stopper

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.