Struct tox::toxcore::tcp::packet::Data [−][src]
Sent by client to server.
The client sends data with connection_id
and the server
relays it to the given connection
Serialized form:
Length | Content |
---|---|
1 | connection_id [ 0x10 .. 0xF0 ) |
variable | Data |
Fields
connection_id: u8
The id of the connection of the client
data: Vec<u8>
Data packet
Trait Implementations
impl Debug for Data
[src]
impl Debug for Data
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 PartialEq for Data
[src]
impl PartialEq for Data
fn eq(&self, other: &Data) -> bool
[src]
fn eq(&self, other: &Data) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Data) -> bool
[src]
fn ne(&self, other: &Data) -> bool
This method tests for !=
.
impl Clone for Data
[src]
impl Clone for Data
fn clone(&self) -> Data
[src]
fn clone(&self) -> Data
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 FromBytes for Data
[src]
impl FromBytes for Data
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], Data, u32>
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], Data, u32>
Deserialize struct using nom
from raw bytes
impl ToBytes for Data
[src]
impl ToBytes for Data