pub enum ClientMessage {
ClientHandshake {
min_version: u8,
max_version: u8,
},
Authentication {
client_id: String,
client_secret: String,
ip_addr: IpAddr,
},
Ping,
Quit,
Bloop {
nfc_uid: NfcUid,
},
RetrieveAudio {
achievement_id: Uuid,
},
PreloadCheck {
audio_manifest_hash: Option<DataHash>,
},
Unknown(Message),
}Expand description
Enum of messages sent from the client to the server.
Variants§
ClientHandshake
Handshake message specifying the supported protocol version range.
Authentication
Authentication message including client ID, secret, and IP address.
Ping
Ping message (keep-alive).
Quit
Quit message (disconnect).
Bloop
“Bloop” message containing an NFC UID.
RetrieveAudio
Request to retrieve audio data associated with an achievement ID.
PreloadCheck
Preload check optionally including a hash of the audio manifest.
Unknown(Message)
Unknown or unsupported message variant, carrying raw message data.
Trait Implementations§
Source§impl Debug for ClientMessage
impl Debug for ClientMessage
Source§impl TryFrom<Message> for ClientMessage
impl TryFrom<Message> for ClientMessage
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnwindSafe for ClientMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more