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]
impl Triggerpub fn cancel(self)[src]
pub fn cancel(self)Cancel all associated streams, and make them immediately yield None.
pub fn disable(self)[src]
pub fn disable(self)Disable the Trigger, and leave all associated streams running to completion.
Trait Implementations
impl Debug for Trigger[src]
impl Debug for Triggerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Drop for Trigger[src]
impl Drop for Trigger