Struct breadx::client_message_data::ClientMessageData[][src]

#[repr(transparent)]
pub struct ClientMessageData { /* fields omitted */ }
Expand description

The data returned from a client message. This is dictated by protocol to be five 32-bit integers in length; however, it could also represent 10 16-bit integers or 20 8-bit integers. It is usually represented as a union; however, the bytes, shorts, and longs methods can be used to access each of these representations.

Implementations

Get the bytes assocated with this sequence.

Get the short integers assocated with this sequence.

Get the long integers associated with this sequence.

Get a mutable reference to the bytes associated with this sequence.

Get a mutable reference to the short integers associated with this sequence.

Get a mutable reference to the long integers associated with this sequence.

Trait Implementations

Get the size needed to store this item in terms of bytes. Higher is better than lower here, since this is mostly used to allocate buffers for items. Read more

Append this item to a sequence of bytes.

Convert a sequence of bytes into this item.

If this item has any file descriptors stored within, this function returns them.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.