Struct ratchet_ext::FrameHeader [−][src]
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.