Enum xio_webapi::DeviceEvent [−][src]
pub enum DeviceEvent { Updated { status: ControllerStatus, }, Removed { uuid: Uuid, }, }
An enum representating device events.
Variants
Updated
The status of the device has been updated.
This also gets used to indicate that a new device has been added.
Fields of Updated
status: ControllerStatus | The new status of the device. |
Removed
A device was removed.
Fields of Removed
uuid: Uuid | The uuid of the device. |
Trait Implementations
impl Clone for DeviceEvent
[src]
impl Clone for DeviceEvent
fn clone(&self) -> DeviceEvent
[src]
fn clone(&self) -> DeviceEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for DeviceEvent
[src]
impl Debug for DeviceEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DeviceEvent
[src]
impl PartialEq for DeviceEvent
fn eq(&self, other: &DeviceEvent) -> bool
[src]
fn eq(&self, other: &DeviceEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DeviceEvent) -> bool
[src]
fn ne(&self, other: &DeviceEvent) -> bool
This method tests for !=
.
impl Eq for DeviceEvent
[src]
impl Eq for DeviceEvent
Auto Trait Implementations
impl Send for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Sync for DeviceEvent