Struct tungstenite::handshake::client::ClientHandshake
source · pub struct ClientHandshake<S> { /* private fields */ }
Expand description
Client handshake role.
Implementations
sourceimpl<S: Read + Write> ClientHandshake<S>
impl<S: Read + Write> ClientHandshake<S>
sourcepub fn start(
stream: S,
request: Request<'_>,
config: Option<WebSocketConfig>
) -> MidHandshake<Self>
pub fn start(
stream: S,
request: Request<'_>,
config: Option<WebSocketConfig>
) -> MidHandshake<Self>
Initiate a client handshake.
Trait Implementations
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more