use crate::{ subscription::{EventStream, Recipe}, Event, Hasher, }; use iced_futures::BoxStream; pub struct Events; impl Recipe for Events { type Output = Event; fn hash(&self, state: &mut Hasher) { use std::hash::Hash; std::any::TypeId::of::().hash(state); } fn stream( self: Box, event_stream: EventStream, ) -> BoxStream { event_stream } }