Enum xio_webapi::ControllerEvent[][src]

pub enum ControllerEvent {
    ModuleStateChanged {
        module_id: String,
        state: ModuleState,
    },
    StateChanged {
        state: ControllerState,
    },
}

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.

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