pub struct FrameHeader {
    pub fin: bool,
    pub rsv1: bool,
    pub rsv2: bool,
    pub rsv3: bool,
    pub opcode: OpCode,
}
Expand description

A frame’s header.

This is passed to both ExtensionEncoder::encode and ExtensionDecoder::decode when a frame has been received. Changes to the reserved bits on a decode call will be sent to the peer. Any other changes or changes made when decoding will have no effect.

Fields

fin: bool

Whether this is the final frame.

Changing this field has no effect.

rsv1: bool

Whether rsv1 was high.

rsv2: bool

Whether rsv2 was high.

rsv3: bool

Whether rsv3 was high.

opcode: OpCode

The frame’s data code.

Changing this field has no effect.

Trait Implementations

Formats the value using the given formatter. 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

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.