Struct fxbox_taxonomy::devices::Channel [] [src]

pub struct Channel<IO> where IO: IOMechanism {
    pub tags: Vec<String>,
    pub id: Id<IO>,
    pub node: Id<NodeId>,
    pub mechanism: IO,
    pub last_seen: Option<TimeStamp>,
    // some fields omitted
}

An service represents a single place where data can enter or leave a device. Note that services support either a single kind of input or a single kind of output. Devices that support both inputs or outputs, or several kinds of inputs, or several kinds of outputs, are represented as nodes containing several services.

Fields

tags

Tags describing the service.

These tags can be set by the user, adapters or applications. They are used to regroup services for rules.

For instance "entrance".

id

An id unique to this service.

node

The node owning this service.

mechanism

The update mechanism for this service.

last_seen

The last time the device was seen.

Trait Implementations

impl<IO: Deserialize> Deserialize for Channel<IO> where IO: IOMechanism

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

impl<IO: Serialize> Serialize for Channel<IO> where IO: IOMechanism

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

Derived Implementations

impl<IO: Clone> Clone for Channel<IO> where IO: IOMechanism

fn clone(&self) -> Channel<IO>

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

impl<IO: Debug> Debug for Channel<IO> where IO: IOMechanism

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