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>
) -> Result<MidHandshake<Self>>
pub fn start(
stream: S,
request: Request,
config: Option<WebSocketConfig>
) -> Result<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more