pub trait AsUpdateStream<'a> {
    type StreamErr;
    type Stream: Stream<Item = Result<Update, Self::StreamErr>> + Send + 'a;

    fn as_stream(&'a mut self) -> Self::Stream;
}
Expand description

UpdateListener’s supertrait/extension.

This trait is a workaround to not require GAT.

Required Associated Types§

Error that can be returned from the Stream

The stream of updates from Telegram.

Required Methods§

Creates the update Stream.

Implementors§