Skip to main content

Event

Trait Event 

Source
pub trait Event:
    Send
    + Sync
    + Clone
    + 'static { }
Expand description

Trait alias for event type constraints.

All events must implement these bounds to work with the MVU runtime.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Event for T
where T: Send + Sync + Clone + 'static,

Blanket implementation for any type that satisfies the bounds.