Enum xio_webapi::ControllerEvent [−][src]
pub enum ControllerEvent { ModuleStateChanged { module_id: String, state: ModuleState, }, StateChanged { state: ControllerState, }, }
An enum representating controller events.
Variants
ModuleStateChanged
The state of a module has changed.
Fields of ModuleStateChanged
module_id: String | The id of the module. |
state: ModuleState | The new state of the module. |
StateChanged
The controller state has changed.
Fields of StateChanged
state: ControllerState | The new state of the controller. |
Trait Implementations
impl Clone for ControllerEvent
[src]
impl Clone for ControllerEvent
fn clone(&self) -> ControllerEvent
[src]
fn clone(&self) -> ControllerEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ControllerEvent
[src]
impl Debug for ControllerEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ControllerEvent
[src]
impl PartialEq for ControllerEvent
fn eq(&self, other: &ControllerEvent) -> bool
[src]
fn eq(&self, other: &ControllerEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ControllerEvent) -> bool
[src]
fn ne(&self, other: &ControllerEvent) -> bool
This method tests for !=
.
impl Eq for ControllerEvent
[src]
impl Eq for ControllerEvent
Auto Trait Implementations
impl Send for ControllerEvent
impl Send for ControllerEvent
impl Sync for ControllerEvent
impl Sync for ControllerEvent