DeviceState

Trait DeviceState 

Source
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§

Source

fn init(device_id: DeviceId) -> Self

Initialize a new state on the given device.

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§