Enum xio_webapi::ControllerEvent [−][src]
pub enum ControllerEvent { ModuleStateChanged { module_id: String, state: ModuleState, }, StateChanged { state: ControllerState, }, FlashingProgressMessage { message: String, }, FlashingErrorMessage { message: String, }, FlashingFinished { success: bool, message: String, }, }
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. |
FlashingProgressMessage
The controller flashing process outputs progress information.
Fields of FlashingProgressMessage
message: String | The progress message. |
FlashingErrorMessage
The controller flashing process outputs error information.
Fields of FlashingErrorMessage
message: String | The error message. |
FlashingFinished
Flashing has finished.
Fields of FlashingFinished
success: bool | A flag indicating whether the flashing was successful. |
message: String | A message describing what happened. |
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