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§
Traits§
- Decoder
- The
Decodertrait. Objects that implement this trait take aBytesMutand return an item whose type is defined as the associated typeItem. - Encoder
- The
Encodertrait. Objects that implement this trait take a user-definedItemand insert into the providedBytesMut. - Framed
Reader - Trait for reading frames
- Framed
Writer - Trait for writing frames