Struct packet_stream::DecodedPacket [] [src]

pub struct DecodedPacket { /* fields omitted */ }

A packet decoded an AsyncRead.

Methods

impl DecodedPacket
[src]

[src]

Returns true if the stream flag of the packet is set.

[src]

Returns true if the end flag of the packet is set.

[src]

Returns true if the type flags signal a buffer.

[src]

Returns true if the type flags signal a string.

[src]

Returns true if the type flags signal json.

[src]

Returns the id of the packet.

[src]

Returns a reference to the packet's data.

[src]

Returns a mutable reference to the packet's data.

[src]

Consumes the packet and gives ownership of its data.

Trait Implementations

impl Debug for DecodedPacket
[src]

[src]

Formats the value using the given formatter.