Enum xio_webapi::DeviceEvent[][src]

pub enum DeviceEvent {
    Updated {
        status: ControllerStatus,
    },
    Removed {
        uuid: Uuid,
    },
}

An enum representating device events.

Variants

The status of the device has been updated.

This also gets used to indicate that a new device has been added.

Fields of Updated

The new status of the device.

A device was removed.

Fields of Removed

The uuid of the device.

Trait Implementations

impl Clone for DeviceEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DeviceEvent
[src]

Formats the value using the given formatter. Read more

impl PartialEq for DeviceEvent
[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 DeviceEvent
[src]

Auto Trait Implementations

impl Send for DeviceEvent

impl Sync for DeviceEvent