[][src]Crate anachro_client

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

ClientIoError

The Error type of the ClientIo interface

Error

The main Client error type

ManagedString

A borrowed or owned string

PubSubPath

Publish/Subscribe Path - Short or Long

TableError

An error type used by the Table trait

Constants

PUBLISH_SHORTCODE_OFFSET

The shortcode offset used for Publish topics

Traits

ClientIo

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 T from a byte slice. The unused portion (if any) of the byte slice is not returned.

to_slice

Serialize a T to the given slice, with the resulting slice containing data in a serialized format.

Type Definitions

Path

A Pub/Sub Path as a Managed String