Struct blaze_pk::Packets

source ·
pub struct Packets {}
Expand description

Structure for storing functions related to creation of packets

Implementations

Creates a new response packet for responding to the provided decodable packet. With the contents

Shortcut function for creating a response packet with no content

Creates a new error response packet for responding to the provided packet with an error number with contents

Shortcut function for creating an error packet with no content

Creates a new notify packet with the provided component and command and contents

Shortcut function for creating a notify packet with no content

Creates a new request packet retrieving its ID from the provided request counter.

Creates a new request packet retrieving its ID from the provided request counter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.