Struct airmash_protocol_v5::ProtocolV5 [−][src]
pub struct ProtocolV5;
Serializer/Deserialize for the airmash protocol version 5.
Trait Implementations
impl Copy for ProtocolV5
[src]
impl Copy for ProtocolV5
impl Clone for ProtocolV5
[src]
impl Clone for ProtocolV5
fn clone(&self) -> ProtocolV5
[src]
fn clone(&self) -> ProtocolV5
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ProtocolV5
[src]
impl Debug for ProtocolV5
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for ProtocolV5
[src]
impl Default for ProtocolV5
fn default() -> ProtocolV5
[src]
fn default() -> ProtocolV5
Returns the "default value" for a type. Read more
impl Protocol for ProtocolV5
[src]
impl Protocol for ProtocolV5
type SerializeError = SerializeError
type DeserializeError = DeserializeError
fn version(&self) -> u8
[src]
fn version(&self) -> u8
Unique version number for the protocol.
fn serialize_client(
&self,
packet: &ClientPacket
) -> Result<Box<Iterator<Item = Vec<u8>>>, SerializeError>
[src]
fn serialize_client(
&self,
packet: &ClientPacket
) -> Result<Box<Iterator<Item = Vec<u8>>>, SerializeError>
Serialize a client packet into some number of binary packet bodies. Read more
fn serialize_server(
&self,
packet: &ServerPacket
) -> Result<Box<Iterator<Item = Vec<u8>>>, SerializeError>
[src]
fn serialize_server(
&self,
packet: &ServerPacket
) -> Result<Box<Iterator<Item = Vec<u8>>>, SerializeError>
Serialize a server packet into some number of binary packet bodies. Read more
fn deserialize_client(
&self,
bytes: &[u8]
) -> Result<ClientPacket, DeserializeError>
[src]
fn deserialize_client(
&self,
bytes: &[u8]
) -> Result<ClientPacket, DeserializeError>
Deserialize a binary packet into a client packet.
fn deserialize_server(
&self,
bytes: &[u8]
) -> Result<ServerPacket, DeserializeError>
[src]
fn deserialize_server(
&self,
bytes: &[u8]
) -> Result<ServerPacket, DeserializeError>
Deserialize a binary packet into a server packet.
Auto Trait Implementations
impl Send for ProtocolV5
impl Send for ProtocolV5
impl Sync for ProtocolV5
impl Sync for ProtocolV5