pub struct SpacePacket { /* private fields */ }
Expand description

Structure used to implement SpacePacket version of LinkPacket

Trait Implementations

Formats the value using the given formatter. Read more

Build packet from necessary parts

Parse packet from raw bytes

Create a bytes representation of the packet

The Command ID of the packet

The payload or data of the packet

The type of payload contained in the packet

The Destination port of the packet

Validate the contents of the link packet

The maximum allowed size of the packet We are still assuming that at some point these packets will be sent over IP/UDP Read more

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

This method tests for !=.

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

Compare self to key and return true if they are equal.

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.