Crate slimproto

Crate slimproto 

Source
Expand description

Slim Protocol for Rust Clients

This library simplifies communicating with a Logitech Media Server, aka LMS, aka Slim Server.

Primarily, communicating with the server is done by instantiating a Server object, connecting to the LMS server and then reading from and writing to supplied connection objects. See SlimProto.

This library also provides a discover function to enable auto-discovery of LMS servers on the network and a StatusData struct to simplify the creation of the regular status messages the server requires.

In order to use this library it’s a good idea to have studied the Slim TCP Protocol first so that this library makes sense.

Re-exports§

pub use capability::Capabilities;
pub use capability::Capability;
pub use proto::ClientMessage;
pub use proto::ServerMessage;

Modules§

buffer
capability
codec
discovery
framed
These are the structs that you instantiate in your application.
proto
status

Structs§

Framed
FramedRead
FramedWrite

Traits§

Decoder
The Decoder trait. Objects that implement this trait take a BytesMut and return an item whose type is defined as the associated type Item.
Encoder
The Encoder trait. Objects that implement this trait take a user-defined Item and insert into the provided BytesMut.
FramedReader
Trait for reading frames
FramedWriter
Trait for writing frames