Struct engine_io::packet::Packet
[−]
[src]
pub struct Packet {
pub id: ID,
pub data: Vec<u8>,
}Fields
id: ID
data: Vec<u8>
Methods
impl Packet[src]
fn from_bytes(bytes: &[u8]) -> Result<Packet, Error>
fn encode(&self) -> Vec<u8>
fn encode_to(&self, v: &mut Vec<u8>)
Trait Implementations
impl Clone for Packet[src]
fn clone(&self) -> Packet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Eq for Packet[src]
impl PartialEq for Packet[src]
fn eq(&self, __arg_0: &Packet) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Packet) -> bool
This method tests for !=.