pub struct ClientHandshakeBuilder { /* private fields */ }
Available on crate features
ws
and client
only.Expand description
Builder for a client handshake.
Implementations§
Source§impl ClientHandshakeBuilder
impl ClientHandshakeBuilder
Sourcepub fn protocol<T>(self, protocol: T) -> Self
pub fn protocol<T>(self, protocol: T) -> Self
Indicate that a given WS sub-protocol is being supported by the client.
Sourcepub fn input_buffer_capacity(self, capacity: usize) -> Self
pub fn input_buffer_capacity(self, capacity: usize) -> Self
Set the maximum input buffer capacity (default is 65_536).
Sourcepub fn build(self, url: Url) -> (ClientHandshake, OutgoingRequest)
pub fn build(self, url: Url) -> (ClientHandshake, OutgoingRequest)
Build the handshake and prepare an outgoing client request.
Auto Trait Implementations§
impl Freeze for ClientHandshakeBuilder
impl RefUnwindSafe for ClientHandshakeBuilder
impl Send for ClientHandshakeBuilder
impl Sync for ClientHandshakeBuilder
impl Unpin for ClientHandshakeBuilder
impl UnwindSafe for ClientHandshakeBuilder
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