Struct lightws::role::FixedMaskClient
source · pub struct FixedMaskClient(/* private fields */);
Expand description
Client using a fixed mask key.
With unsafe_auto_mask_write
feature enabled, it will automatically
mask payload data before a write, where its inner mask key is not updated.
Trait Implementations§
source§impl AutoMaskClientRole for FixedMaskClient
impl AutoMaskClientRole for FixedMaskClient
const UPDATE_MASK_KEY: bool = false
source§impl ClientRole for FixedMaskClient
impl ClientRole for FixedMaskClient
const SHORT_FRAME_HEAD_LEN: u8 = 2u8
const COMMON_FRAME_HEAD_LEN: u8 = 4u8
const LONG_FRAME_HEAD_LEN: u8 = 10u8
source§impl Clone for FixedMaskClient
impl Clone for FixedMaskClient
source§fn clone(&self) -> FixedMaskClient
fn clone(&self) -> FixedMaskClient
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 RoleHelper for FixedMaskClient
impl RoleHelper for FixedMaskClient
impl Copy for FixedMaskClient
Auto Trait Implementations§
impl RefUnwindSafe for FixedMaskClient
impl Send for FixedMaskClient
impl Sync for FixedMaskClient
impl Unpin for FixedMaskClient
impl UnwindSafe for FixedMaskClient
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