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 UnsafeUnpin 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
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more