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
DirectoryTree
The payload of a LIST request.
Frame
An ‘image’ to be displayed on the lighthouse. The pixels are stored in row-major order.
GamepadAxis2DEvent
A 2D axis event on a gamepad.
GamepadAxisEvent
A 1D axis event on a gamepad.
GamepadButtonEvent
A button event on a gamepad.
GamepadEvent
A gamepad/controller event.
KeyEvent
A keyboard event.
KeyModifiers
A keyboard event.
LampV2Metrics
LaserMetrics
LegacyInputEvent
A keyboard/controller input event, as generated by the new frontend (LUNA) in “Legacy Mode” (or the old website).
MouseEvent
A mouse event.
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.
Vec2
A 2D vector.

Enums§

Direction
One of the four cardinal directions.
EventSource
An identifier that is unique per client + device combo.
GamepadControlEvent
A control-specific event on a gamepad.
InputEvent
A user input event, as generated by the new frontend (LUNA).
Model
The payload of a model message.
MouseButton
A mouse button.
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.

Traits§

RemEuclid
A type that supports Euclidean modulo.
Sqrt
A type whose values have a square root.
Unity
A type that has positive and negative unit values.
Zero
A type that has a zero value.

Functions§

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

Type Aliases§

Delta
A type alias that semantically expresses an offset/delta.
Pos
A type alias that semantically expresses a position.