Crate echonet_lite

Crate echonet_lite 

Source
Expand description

This crate is pure Rust ECHONET Lite implementation including

  • serde implementation of ECHONET Lite packet
  • detailed property configurations of ECHONET Device objects (WIP)

but not included

  • transport layer (usually, UDP with IPv4/IPv6) implementation
  • specific ECHONET Lite object behavior

Re-exports§

pub use crate::object::EchonetObject;

Modules§

object
prelude
The echonet-lite prelude.

Macros§

bulk_read
Create a Properties object for Get request obtaining one or more property values.
prop
Create a Property object from a pair of EPC (u8) and EDT ([u8; _]).
props
Create a Properties object from an array of EPC (u8) and EDT ([u8; _]) pairs.

Structs§

Edt
ECHONET property value data.
ElPacket
An ECHONET Lite packet representation.
ElPacketBuilder
Builds a ECHONET Lite packet.
Properties
An ECHONET property array consists of OPC, EPC1, PDC1, EDT1 ... EPCn, PDCn, EDTn.
Property
A ECHONET property putting EPC, OPC, and EDT together.

Enums§

ErrorKind
The kind of error that can be produced during a serialization or deserialization.
ServiceCode
Reperesents ECHONET LiteService (ESV). The service code specifies an operation for properties stipulated by the EPC.

Functions§

deserialize
serialize

Type Aliases§

Error
An error that can be produced during (de)serializing.
Result
The result of a serialization or deserialization operation.