Skip to main content

Module message

Module message 

Source
Expand description

Protocol messages, re-exported from bloop_protocol.

The wire format lives in the bloop-protocol crate since framework 2.0; this module keeps the 1.x import paths working for the types the framework’s public API uses. Custom protocol extensions define their own messages with the bloop_protocol derives and plug them into the NetworkListener type parameters.

Structs§

AchievementRecord
An awarded achievement together with its optional audio hash.
AudioData
Carries the audio data for a requested achievement.
Authentication
Authenticates the client after the handshake.
AuthenticationAccepted
Confirms successful authentication.
Bloop
Asks the server to verify a scanned NFC UID.
BloopAccepted
Accepts a bloop and lists the achievements it awarded.
Capabilities
Bitmask of capabilities supported by the server.
ClientHandshake
Opens a session by negotiating the protocol version.
DataHash
An opaque hash over associated data, such as an audio file.
Ping
Keep-alive signal; the server answers with a pong.
Pong
Answers a ping.
PreloadCheck
Asks the server whether the cached audio assets are up to date.
PreloadMatch
Confirms that the client’s cached audio assets are up to date.
PreloadMismatch
Reports an outdated audio manifest along with the current asset list.
Quit
Announces that the client is about to close the connection.
RawMessage
A raw protocol frame with an opcode and an undecoded payload.
RetrieveAudio
Requests the audio data for an achievement.
ServerHandshake
Accepts the handshake and declares the server’s capabilities.

Enums§

ClientMessage
Messages sent from the client to the server.
ErrorResponse
An error reported by the server.
ServerMessage
Messages sent from the server to the client.