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 moresource§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more