Struct stream_cancel::Trigger[][src]

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]

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

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

Trait Implementations

impl Debug for Trigger
[src]

Formats the value using the given formatter. Read more

impl Drop for Trigger
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for Trigger

impl Sync for Trigger