Trait teloxide::update_listeners::AsUpdateStream
source · 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.