usesuper::Event;/// A trait for types that can be converted into an event. Any given type that
/// implements this trait can be published as an event.
pubtraitIntoEvent: Clone {/// Consume the type, producing an [`Event`]
fninto_event(self)-> Event;}impl<T> IntoEvent forTwhere
T:Into<Event> + Clone,
{fninto_event(self)-> Event{self.clone().into()}}