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§
- Achievement
Record - An awarded achievement together with its optional audio hash.
- Audio
Data - Carries the audio data for a requested achievement.
- Authentication
- Authenticates the client after the handshake.
- Authentication
Accepted - Confirms successful authentication.
- Bloop
- Asks the server to verify a scanned NFC UID.
- Bloop
Accepted - Accepts a bloop and lists the achievements it awarded.
- Capabilities
- Bitmask of capabilities supported by the server.
- Client
Handshake - Opens a session by negotiating the protocol version.
- Data
Hash - 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.
- Preload
Check - Asks the server whether the cached audio assets are up to date.
- Preload
Match - Confirms that the client’s cached audio assets are up to date.
- Preload
Mismatch - 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.
- Retrieve
Audio - Requests the audio data for an achievement.
- Server
Handshake - Accepts the handshake and declares the server’s capabilities.
Enums§
- Client
Message - Messages sent from the client to the server.
- Error
Response - An error reported by the server.
- Server
Message - Messages sent from the server to the client.