[][src]Enum xio_webapi::ControllerEvent

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

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.

progress: Option<Progress>

The progress that was made.

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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for ControllerEvent[src]

impl PartialEq<ControllerEvent> for ControllerEvent[src]

impl Debug for ControllerEvent[src]

impl Serialize for ControllerEvent[src]

impl<'de> Deserialize<'de> for ControllerEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> PathLoad for T where
    T: DeserializeOwned