pub struct Client { /* private fields */ }๐Deprecated:
use qmux::ws::Client instead
Expand description
Implementationsยง
Sourceยงimpl Client
impl Client
pub fn new() -> Self
Sourcepub fn with_protocol(self, protocol: &str) -> Self
pub fn with_protocol(self, protocol: &str) -> Self
Add a supported application-level subprotocol for negotiation.
Sourcepub fn with_protocols(self, protocols: &[&str]) -> Self
pub fn with_protocols(self, protocols: &[&str]) -> Self
Add multiple supported application-level subprotocols for negotiation.
Sourcepub fn with_config(self, config: WebSocketConfig) -> Self
pub fn with_config(self, config: WebSocketConfig) -> Self
Set the WebSocket configuration (e.g. max message/frame sizes).
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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