[][src]Struct websocat::options::Options

pub struct Options {
    pub websocket_text_mode: bool,
    pub websocket_protocol: Option<String>,
    pub websocket_reply_protocol: Option<String>,
    pub udp_oneshot_mode: bool,
    pub unidirectional: bool,
    pub unidirectional_reverse: bool,
    pub exit_on_eof: bool,
    pub oneshot: bool,
    pub unlink_unix_socket: bool,
    pub exec_args: Vec<String>,
    pub ws_c_uri: String,
    pub linemode_strip_newlines: bool,
    pub linemode_strict: bool,
    pub origin: Option<String>,
    pub custom_headers: Vec<(String, Vec<u8>)>,
    pub custom_reply_headers: Vec<(String, Vec<u8>)>,
    pub websocket_version: Option<String>,
    pub websocket_dont_close: bool,
    pub one_message: bool,
    pub no_auto_linemode: bool,
    pub buffer_size: usize,
    pub broadcast_queue_len: usize,
    pub read_debt_handling: DebtHandling,
    pub linemode_zero_terminated: bool,
    pub restrict_uri: Option<String>,
    pub serve_static_files: Vec<StaticFile>,
    pub exec_set_env: bool,
    pub reuser_send_zero_msg_on_disconnect: bool,
    pub process_zero_sighup: bool,
    pub process_exit_sighup: bool,
    pub socks_destination: Option<SocksSocketAddr>,
    pub auto_socks5: Option<SocketAddr>,
    pub socks5_bind_script: Option<OsString>,
    pub tls_domain: Option<String>,
    pub pkcs12_der: Option<Vec<u8>>,
    pub pkcs12_passwd: Option<String>,
    pub tls_insecure: bool,
    pub max_parallel_conns: Option<usize>,
    pub ws_ping_interval: Option<u64>,
    pub ws_ping_timeout: Option<u64>,
}

Fields

websocket_text_mode: boolwebsocket_protocol: Option<String>websocket_reply_protocol: Option<String>udp_oneshot_mode: boolunidirectional: boolunidirectional_reverse: boolexit_on_eof: booloneshot: boolunlink_unix_socket: boolexec_args: Vec<String>ws_c_uri: Stringlinemode_strip_newlines: boollinemode_strict: boolorigin: Option<String>custom_headers: Vec<(String, Vec<u8>)>custom_reply_headers: Vec<(String, Vec<u8>)>websocket_version: Option<String>websocket_dont_close: boolone_message: boolno_auto_linemode: boolbuffer_size: usizebroadcast_queue_len: usizeread_debt_handling: DebtHandlinglinemode_zero_terminated: boolrestrict_uri: Option<String>serve_static_files: Vec<StaticFile>exec_set_env: boolreuser_send_zero_msg_on_disconnect: boolprocess_zero_sighup: boolprocess_exit_sighup: boolsocks_destination: Option<SocksSocketAddr>auto_socks5: Option<SocketAddr>socks5_bind_script: Option<OsString>tls_domain: Option<String>pkcs12_der: Option<Vec<u8>>pkcs12_passwd: Option<String>tls_insecure: boolmax_parallel_conns: Option<usize>ws_ping_interval: Option<u64>ws_ping_timeout: Option<u64>

Trait Implementations

impl Default for Options[src]

fn default() -> Self[src]

Return Options { websocket_text_mode: Default::default(), websocket_protocol: Default::default(), websocket_reply_protocol: Default::default(), udp_oneshot_mode: Default::default(), unidirectional: Default::default(), unidirectional_reverse: Default::default(), exit_on_eof: Default::default(), oneshot: Default::default(), unlink_unix_socket: Default::default(), exec_args: Default::default(), ws_c_uri: Default::default(), linemode_strip_newlines: Default::default(), linemode_strict: Default::default(), origin: Default::default(), custom_headers: Default::default(), custom_reply_headers: Default::default(), websocket_version: Default::default(), websocket_dont_close: Default::default(), one_message: Default::default(), no_auto_linemode: Default::default(), buffer_size: 65536, broadcast_queue_len: 16, read_debt_handling: DebtHandling :: Silent, linemode_zero_terminated: Default::default(), restrict_uri: Default::default(), serve_static_files: Default::default(), exec_set_env: Default::default(), reuser_send_zero_msg_on_disconnect: Default::default(), process_zero_sighup: Default::default(), process_exit_sighup: Default::default(), socks_destination: Default::default(), auto_socks5: Default::default(), socks5_bind_script: Default::default(), tls_domain: Default::default(), pkcs12_der: Default::default(), pkcs12_passwd: Default::default(), tls_insecure: Default::default(), max_parallel_conns: Default::default(), ws_ping_interval: Default::default(), ws_ping_timeout: Default::default() }

impl Debug for Options[src]

Auto Trait Implementations

impl Send for Options

impl Sync for Options

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.