[][src]Struct stream_cancel::Trigger

pub struct Trigger(_);

A handle to a set of cancellable streams.

If the Trigger is dropped, any streams associated with it are interrupted (this is equivalent to calling [Trigger::close]. To override this behavior, call Trigger::disable.

Methods

impl Trigger[src]

pub fn cancel(self)[src]

Cancel all associated streams, and make them immediately yield None.

pub fn disable(self)[src]

Disable the Trigger, and leave all associated streams running to completion.

Trait Implementations

impl Debug for Trigger[src]

impl Drop for Trigger[src]

Auto Trait Implementations

impl !RefUnwindSafe for Trigger

impl Send for Trigger

impl Sync for Trigger

impl Unpin for Trigger

impl !UnwindSafe for Trigger

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.