Skip to main content

Event

Trait Event 

Source
pub trait Event:
    Serialize
    + for<'de> Deserialize<'de>
    + Send
    + Sync
    + 'static { }
Expand description

Marker trait for authoritative facts emitted after state transitions.

Events are immutable records of something that happened. They flow from server to client (and potentially to other server-side subscribers).

§Bounds

Same as Command: Serialize + Deserialize + Send + Sync + 'static.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§