[][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 Eq for ControllerEvent[src]

impl Clone 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> PathLoad for T where
    T: DeserializeOwned