Struct ws_tool::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }Expand description
helper builder to construct websocket client
Implementations§
source§impl ClientBuilder
impl ClientBuilder
source§impl ClientBuilder
impl ClientBuilder
sourcepub fn protocols(self, protocols: Vec<String>) -> Self
pub fn protocols(self, protocols: Vec<String>) -> Self
set extension in handshake http header
NOTE it will clear protocols set by protocol method
sourcepub fn extensions(self, extensions: Vec<String>) -> Self
pub fn extensions(self, extensions: Vec<String>) -> Self
set extension in handshake http header
NOTE it will clear protocols set by protocol method
Trait Implementations§
source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
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