Trait elfo::SourceHandle

source ·
pub trait SourceHandle: Sealed {
    // Required methods
    fn is_terminated(&self) -> bool;
    fn terminate(self);
}
Expand description

Defines common methods for sources.

Required Methods§

source

fn is_terminated(&self) -> bool

Returns true if the source has stopped producing messages.

source

fn terminate(self)

Terminates the source. Drop is called immediately.

Implementors§

source§

impl<M> SourceHandle for Signal<M>where M: Message,

source§

impl<M> SourceHandle for Stream<M>where M: StreamItem,

source§

impl<M> SourceHandle for Delay<M>where M: Message,

source§

impl<M> SourceHandle for Interval<M>where M: Message,