Expand description
§The Anachro Protocol Client Library
This crate is used by devices acting as a Client of the Anachro Protocol
Re-exports§
pub use anachro_icd;
Macros§
- pubsub_
table - A macro for defining a publish and subscribe table
Structs§
- Client
- The Client interface
- RecvMsg
- A message that has been received FROM the Broker, TO the Client
- SendMsg
- A message to be sent TO the Broker, FROM the Client
- SubMsg
- Subscription Message
- Version
- Device version - SemVer
Enums§
- Client
IoError - The Error type of the ClientIo interface
- Error
- The main Client error type
- Managed
String - A borrowed or owned string
- PubSub
Path - Publish/Subscribe Path - Short or Long
- Table
Error - An error type used by the
Tabletrait
Constants§
- PUBLISH_
SHORTCODE_ OFFSET - The shortcode offset used for Publish topics
Traits§
- Client
Io - A trait for defining the IO layer for a given client
- Table
- A trait describing publish and subscription topics
Functions§
- from_
bytes - Deserialize a message of type
Tfrom a byte slice. The unused portion (if any) of the byte slice is not returned. - to_
slice - Serialize a
Tto the given slice, with the resulting slice containing data in a serialized format.
Type Aliases§
- Path
- A Pub/Sub Path as a Managed String