[−][src]Enum airmash_protocol::ClientPacket
All possible client packets.
This contains all valid packets that the client can send to the server (in the current version of the airmash protocol).
Some packets don't contain any data, these packets do not have an associated struct and as such are just empty variants within this enum.
The From
trait has been implemented
for all the structs that correspond to the
variants of this enum. This means that instead
of directly constructing an instance of
ClientPacket
, into()
can be called
instead.
Variants
Login(Login)
Backup(Backup)
Horizon(Horizon)
Ack
Pong(Pong)
Key(Key)
Command(Command)
ScoreDetailed
Chat(Chat)
TeamChat(TeamChat)
Whisper(Whisper)
Say(Say)
VoteMute(VoteMute)
LocalPing(LocalPing)
Trait Implementations
impl<T> ProtocolSerializationExt<ClientPacket> for T where
T: Protocol + Sync + Send,
[src]
impl<T> ProtocolSerializationExt<ClientPacket> for T where
T: Protocol + Sync + Send,
fn serialize<U>( | [src] |
fn deserialize( | [src] |
impl Clone for ClientPacket
[src]
impl Clone for ClientPacket
fn clone(&self) -> ClientPacket | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl From<Login> for ClientPacket
[src]
impl From<Login> for ClientPacket
impl From<Backup> for ClientPacket
[src]
impl From<Backup> for ClientPacket
impl From<Horizon> for ClientPacket
[src]
impl From<Horizon> for ClientPacket
impl From<Pong> for ClientPacket
[src]
impl From<Pong> for ClientPacket
impl From<Key> for ClientPacket
[src]
impl From<Key> for ClientPacket
impl From<Command> for ClientPacket
[src]
impl From<Command> for ClientPacket
impl From<Chat> for ClientPacket
[src]
impl From<Chat> for ClientPacket
impl From<TeamChat> for ClientPacket
[src]
impl From<TeamChat> for ClientPacket
impl From<Whisper> for ClientPacket
[src]
impl From<Whisper> for ClientPacket
impl From<Say> for ClientPacket
[src]
impl From<Say> for ClientPacket
impl From<VoteMute> for ClientPacket
[src]
impl From<VoteMute> for ClientPacket
impl From<LocalPing> for ClientPacket
[src]
impl From<LocalPing> for ClientPacket
impl From<Ack> for ClientPacket
[src]
impl From<Ack> for ClientPacket
impl From<ScoreDetailed> for ClientPacket
[src]
impl From<ScoreDetailed> for ClientPacket
fn from(_: ScoreDetailed) -> Self | [src] |
impl Debug for ClientPacket
[src]
impl Debug for ClientPacket
impl Serialize for ClientPacket
[src]
impl Serialize for ClientPacket
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for ClientPacket
[src]
impl<'de> Deserialize<'de> for ClientPacket
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for ClientPacket
impl Send for ClientPacket
impl Sync for ClientPacket
impl Sync for ClientPacket
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,