Struct ws_tool::codec::FrameConfig
source · pub struct FrameConfig {
pub check_rsv: bool,
pub mask_send_frame: bool,
pub auto_unmask: bool,
pub max_frame_payload_size: usize,
pub auto_fragment_size: usize,
pub merge_frame: bool,
pub validate_utf8: ValidateUtf8Policy,
}Expand description
frame send/recv config
Fields§
§check_rsv: boolcheck rsv1 bits
mask_send_frame: boolauto mask send frame payload, for client, it must be true
auto_unmask: boolauto unmask a masked frame payload
max_frame_payload_size: usizelimit max payload size
auto_fragment_size: usizeauto split size, if set 0, do not split frame
merge_frame: boolauto merge fragmented frames into one frame
validate_utf8: ValidateUtf8Policyutf8 check policy
Trait Implementations§
source§impl Clone for FrameConfig
impl Clone for FrameConfig
source§fn clone(&self) -> FrameConfig
fn clone(&self) -> FrameConfig
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 more