State

Trait State 

Source
pub trait State:
    Debug
    + Send
    + PartialEq
    + Copy {
    type Input: Send + Sync + 'static + Debug;
}
Expand description

A trait for types representing state machine lifecycles. These types should be field-less enumerations or enumerations whose variants only contain field-less enumerations; note that Copy is a required supertrait.

Required Associated Types§

Source

type Input: Send + Sync + 'static + Debug

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§