Struct tungstenite::handshake::client::ClientHandshake
source · pub struct ClientHandshake<S> { /* private fields */ }
Expand description
Client handshake role.
Implementations§
source§impl<S: Read + Write> ClientHandshake<S>
impl<S: Read + Write> ClientHandshake<S>
sourcepub fn start(
stream: S,
request: Request,
config: Option<WebSocketConfig>,
) -> Result<MidHandshake<Self>>
pub fn start( stream: S, request: Request, config: Option<WebSocketConfig>, ) -> Result<MidHandshake<Self>>
Initiate a client handshake.
Trait Implementations§
source§impl<S: Debug> Debug for ClientHandshake<S>
impl<S: Debug> Debug for ClientHandshake<S>
impl<S: Read + Write> HandshakeRole for ClientHandshake<S>
Auto Trait Implementations§
impl<S> Freeze for ClientHandshake<S>
impl<S> RefUnwindSafe for ClientHandshake<S>where
S: RefUnwindSafe,
impl<S> Send for ClientHandshake<S>where
S: Send,
impl<S> Sync for ClientHandshake<S>where
S: Sync,
impl<S> Unpin for ClientHandshake<S>where
S: Unpin,
impl<S> UnwindSafe for ClientHandshake<S>where
S: UnwindSafe,
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