pub enum EventOrMessage<M> {
Evt(Event),
Msg(M),
}Expand description
This is a helper enum to handle both events and messages.
Variants§
Auto Trait Implementations§
impl<M> Freeze for EventOrMessage<M>where
M: Freeze,
impl<M> !RefUnwindSafe for EventOrMessage<M>
impl<M> Send for EventOrMessage<M>where
M: Send,
impl<M> !Sync for EventOrMessage<M>
impl<M> Unpin for EventOrMessage<M>where
M: Unpin,
impl<M> !UnwindSafe for EventOrMessage<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more