Struct lightws::role::StandardClient
source · pub struct StandardClient(/* private fields */);
Expand description
Standard client using random mask key.
With unsafe_auto_mask_write
feature enabled, it will automatically
update its inner mask key and mask payload data before a write.
Trait Implementations§
source§impl AutoMaskClientRole for StandardClient
impl AutoMaskClientRole for StandardClient
const UPDATE_MASK_KEY: bool = true
source§impl ClientRole for StandardClient
impl ClientRole for StandardClient
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 StandardClient
impl Clone for StandardClient
source§fn clone(&self) -> StandardClient
fn clone(&self) -> StandardClient
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 StandardClient
impl RoleHelper for StandardClient
impl Copy for StandardClient
Auto Trait Implementations§
impl Freeze for StandardClient
impl RefUnwindSafe for StandardClient
impl Send for StandardClient
impl Sync for StandardClient
impl Unpin for StandardClient
impl UnwindSafe for StandardClient
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)