AbortHandle

Trait AbortHandle 

Source
pub trait AbortHandle: MaybeSend + MaybeSync {
    // Required methods
    fn end(&self);
    fn is_finished(&self) -> bool;
}
Expand description

A handle that can be moved/cloned/sent, but can only close the stream.

Required Methods§

Source

fn end(&self)

Send a signal to end the stream, without waiting for a result.

Source

fn is_finished(&self) -> bool

Implementors§