Struct ratchet_ext::FrameHeader
source · 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§
source§impl Debug for FrameHeader
impl Debug for FrameHeader
source§impl PartialEq<FrameHeader> for FrameHeader
impl PartialEq<FrameHeader> for FrameHeader
source§fn eq(&self, other: &FrameHeader) -> bool
fn eq(&self, other: &FrameHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FrameHeader
Auto Trait Implementations§
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more