Trait DeviceState
pub trait DeviceState: Send + 'static {
// Required method
fn init(device_id: DeviceId) -> Self;
}Expand description
A state that can be saved inside the DeviceContext.
Required Methods§
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.