Struct packet_stream::Metadata
[−]
[src]
pub struct Metadata {
pub packet_type: PacketType,
pub is_end: bool,
}The metadata associated with a packet.
The packet id is an implementation detail of packet-stream and is thus not exposed.
Fields
packet_type: PacketType
The type of the packet.
is_end: bool
Whether the packet has the end/error flag set.
Methods
impl Metadata[src]
pub fn new(packet_type: PacketType, is_end: bool) -> Metadata[src]
Create new Metadata.
Trait Implementations
impl Debug for Metadata[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Copy for Metadata[src]
impl Clone for Metadata[src]
fn clone(&self) -> Metadata[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Metadata[src]
fn eq(&self, __arg_0: &Metadata) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Metadata) -> bool[src]
This method tests for !=.