Struct ws_tool::config::WebsocketConfig[][src]

pub struct WebsocketConfig {
Show 13 fields pub log_octets: bool, pub log_frame: bool, pub validate_utf8: bool, pub mask: bool, pub max_frame_payload_size: u64, pub auto_fragment_size: u64, pub open_handshake_timeout: u64, pub close_handshake_timeout: u64, pub tcp_no_delay: bool, pub auto_ping_interval: u64, pub auto_ping_timeout: u64, pub auto_ping_payload: Bytes, pub version: u8,
}
Expand description

websocket client config

Fields

log_octets: bool

if true, log every byte in trace level

log_frame: bool

if true, log every frame debug level

validate_utf8: bool

check text utf-8 validation, default true

mask: bool

apply frame masking, default true

max_frame_payload_size: u64

max frame payload size, default 0, unlimited

auto_fragment_size: u64

default 0, not fragmented

open_handshake_timeout: u64

open handshake timeout in milliseconds, default 0, not setting timeout

close_handshake_timeout: u64

close handshake timeout in milliseconds, default 0, not setting timeout

tcp_no_delay: bool

if true, set NODELAY(Nagle) socket option

auto_ping_interval: u64

auto ping interval, milliseconds between auto ping

auto_ping_timeout: u64

auto ping timeout in milliseconds

auto_ping_payload: Bytesversion: u8

websocket version, default 13

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.