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,
pub resize_size: usize,
pub resize_thresh: usize,
}
Expand description
frame send/recv config
Fields§
§check_rsv: bool
check rsv1 bits
mask_send_frame: bool
auto mask send frame payload, for client, it must be true
auto_unmask: bool
auto unmask a masked frame payload
max_frame_payload_size: usize
limit max payload size
auto_fragment_size: usize
auto split size, if set 0, do not split frame
merge_frame: bool
auto merge fragmented frames into one frame
validate_utf8: ValidateUtf8Policy
utf8 check policy
resize_size: usize
resize size of read buf, default 4K
resize_thresh: usize
if avalible len < resize, resize read buf, default 1K
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