Skip to main content

State

Trait State 

Source
pub trait State:
    Any
    + Send
    + 'static { }
Expand description

Represents the state of an actor. Must be safe to send between threads (same bounds as a Message)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> State for T
where T: Any + Send + 'static,