Enum xio_webapi::ControllerEvent[][src]

pub enum ControllerEvent {
    ModuleStateChanged {
        module_id: String,
        state: ModuleState,
    },
    StateChanged {
        state: ControllerState,
    },
    FlashingProgressMessage {
        message: String,
        progress: Option<Progress>,
    },
    FlashingErrorMessage {
        message: String,
    },
    FlashingFinished {
        success: bool,
        message: String,
    },
}

An enum representating controller events.

Variants

The state of a module has changed.

Fields of ModuleStateChanged

The id of the module.

The new state of the module.

The controller state has changed.

Fields of StateChanged

The new state of the controller.

The controller flashing process outputs progress information.

Fields of FlashingProgressMessage

The progress message.

The progress that was made.

The controller flashing process outputs error information.

Fields of FlashingErrorMessage

The error message.

Flashing has finished.

Fields of FlashingFinished

A flag indicating whether the flashing was successful.

A message describing what happened.

Trait Implementations

impl Clone for ControllerEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ControllerEvent
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ControllerEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ControllerEvent
[src]

Auto Trait Implementations