Skip to main content

StateUpdate

Trait StateUpdate 

Source
pub trait StateUpdate:
    Clone
    + Send
    + Sync
    + Serialize
    + DeserializeOwned
    + Debug
    + Default
    + 'static { }
Expand description

Marker trait for state update structs. Generated by #[derive(State)] — the StateUpdate has Option<T> per field.

All generated updates have all-Option fields, so Default is natural (all fields None = empty update).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§