Crate lighthouse_protocol

Source

Structs§

Authentication
Credentials for authenticating with the lighthouse.
BoardV1Metrics
ClientMessage
A message originating from the lighthouse client.
Color
An RGB color.
ControllerV2Metrics
Delta
A 2D vector on the lighthouse display.
DirectoryTree
The payload of a LIST request.
Frame
An ‘image’ to be displayed on the lighthouse. The pixels are stored in row-major order.
InputEvent
A key/controller input event.
LampV2Metrics
LaserMetrics
Pos
A position on the integer grid.
Rect
A rectangle on the integer grid.
RoomMetrics
RoomV1Metrics
RoomV2Metrics
Rotation
An 2D rotation that is representable using an integer matrix.
ServerMessage
A message originating from the lighthouse server.

Enums§

Model
The payload of a model message.
RoomApiMetrics
Value
Represents any valid MessagePack value.
ValueError
Verb
A request method.

Constants§

LIGHTHOUSE_BYTES
The total number of bytes in a lighthouse frame.
LIGHTHOUSE_COLS
The number of columns of the lighthouse.
LIGHTHOUSE_RECT
The rectangle of valid coordinates on the lighthouse.
LIGHTHOUSE_ROWS
The number of rows of the lighthouse.
LIGHTHOUSE_SIZE
The number of pixels in a lighthouse frame.

Functions§

from_value
to_value
Convert a T into rmpv::Value which is an enum that can represent any valid MessagePack data.