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

The type of the packet.

Whether the packet has the end/error flag set.

Methods

impl Metadata
[src]

[src]

Create new Metadata.

Trait Implementations

impl Debug for Metadata
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Metadata
[src]

impl Clone for Metadata
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Metadata
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Metadata
[src]

Auto Trait Implementations

impl Send for Metadata

impl Sync for Metadata