Struct ClientHandshake
pub struct ClientHandshake<S> { /* private fields */ }Expand description
Client handshake role.
Implementations§
§impl<S> ClientHandshake<S>
impl<S> ClientHandshake<S>
pub fn start(
stream: S,
request: Request<()>,
config: Option<WebSocketConfig>,
) -> Result<MidHandshake<ClientHandshake<S>>, Error>
pub fn start( stream: S, request: Request<()>, config: Option<WebSocketConfig>, ) -> Result<MidHandshake<ClientHandshake<S>>, Error>
Initiate a client handshake.
Trait Implementations§
§impl<S> Debug for ClientHandshake<S>where
S: Debug,
impl<S> Debug for ClientHandshake<S>where
S: Debug,
impl<S> 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