Struct ws_tool::frame::HeaderView
source · pub struct HeaderView<'a>(/* private fields */);
Expand description
frame header
Implementations§
source§impl<'a> HeaderView<'a>
impl<'a> HeaderView<'a>
sourcepub fn payload_len(&self) -> u64
pub fn payload_len(&self) -> u64
return payload len
sourcepub fn masking_key(&self) -> Option<[u8; 4]>
pub fn masking_key(&self) -> Option<[u8; 4]>
get frame mask key
Trait Implementations§
source§impl<'a> Clone for HeaderView<'a>
impl<'a> Clone for HeaderView<'a>
source§fn clone(&self) -> HeaderView<'a>
fn clone(&self) -> HeaderView<'a>
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<'a> Debug for HeaderView<'a>
impl<'a> Debug for HeaderView<'a>
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<'a> Copy for HeaderView<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for HeaderView<'a>
impl<'a> Send for HeaderView<'a>
impl<'a> Sync for HeaderView<'a>
impl<'a> Unpin for HeaderView<'a>
impl<'a> UnwindSafe for HeaderView<'a>
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