Skip to main content

StateMarker

Trait StateMarker 

Source
pub trait StateMarker {
    type Data;
}
Expand description

A generated state marker type.

Every #[state] variant produces one marker type that implements StateMarker. The associated Data type is () for unit states and the tuple payload type for data-bearing states.

Required Associated Types§

Source

type Data

The payload type stored in machines for this state.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§