Struct ws_tool::frame::SimplifiedHeader
source · pub struct SimplifiedHeader {
pub fin: bool,
pub rsv1: bool,
pub rsv2: bool,
pub rsv3: bool,
pub code: OpCode,
}
Expand description
header with less info
Fields§
§fin: bool
fin
rsv1: bool
compressed bit
rsv2: bool
reserved
rsv3: bool
reserved
code: OpCode
frame type
Trait Implementations§
source§impl Clone for SimplifiedHeader
impl Clone for SimplifiedHeader
source§fn clone(&self) -> SimplifiedHeader
fn clone(&self) -> SimplifiedHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SimplifiedHeader
impl Debug for SimplifiedHeader
source§impl<'a> From<HeaderView<'a>> for SimplifiedHeader
impl<'a> From<HeaderView<'a>> for SimplifiedHeader
source§fn from(value: HeaderView<'a>) -> Self
fn from(value: HeaderView<'a>) -> Self
Converts to this type from the input type.
impl Copy for SimplifiedHeader
Auto Trait Implementations§
impl RefUnwindSafe for SimplifiedHeader
impl Send for SimplifiedHeader
impl Sync for SimplifiedHeader
impl Unpin for SimplifiedHeader
impl UnwindSafe for SimplifiedHeader
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