Enum fxbox_taxonomy::api::WatchEvent [] [src]

pub enum WatchEvent {
    Value {
        from: Id<Get>,
        value: Value,
    },
    GetRemoved(Id<Get>),
    GetAdded(Id<Get>),
}

An event during watching.

Variants

Value

A new value is available.

Fields

from

The channel that sent the value.

value

The actual value.

GetRemoved

The set of devices being watched has changed, typically either because a tag was edited or because a device was removed. Payload is the id of the device that was removed.

GetAdded

The set of devices being watched has changed, typically either because a tag was edited or because a device was added. Payload is the id of the device that was added.

Trait Implementations

impl Deserialize for WatchEvent

fn deserialize<__D>(deserializer: &mut __D) -> Result<WatchEvent, __D::Error> where __D: Deserializer

impl Serialize for WatchEvent

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl Clone for WatchEvent

fn clone(&self) -> WatchEvent

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

impl Debug for WatchEvent

fn fmt(&self, __arg_0: &mut Formatter) -> Result