Struct wurl::util::options::Options
[−]
[src]
pub struct Options { pub silent: bool, pub url: String, pub show_control_frames: Show, pub echo: bool, pub print_headers: bool, pub headers: Vec<String>, }
Fields
silent: bool
Supresses all output except incoming frames
url: String
The WebSocket URL to connect to.
show_control_frames: Show
Specifies when to print control frames. Control frames will be prefixed with the type of control frame, for example "[ping]", and further prefixed with ">" for outgoing control frames
echo: bool
Print outgoing frames as well as the incoming frames. Outgoing frames will be prefixed with ">".
print_headers: bool
Print the headers of any HTTP request when true.
headers: Vec<String>
Headers
Methods
impl Options
[src]
Trait Implementations
impl Clone for Options
[src]
fn clone(&self) -> Options
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Options
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more