Struct tungstenite::handshake::client::ClientHandshake [−][src]
pub struct ClientHandshake<S> { /* fields omitted */ }
Client handshake role.
Implementations
impl<S: Read + Write> ClientHandshake<S>
[src]
impl<S: Read + Write> ClientHandshake<S>
[src]pub fn start(
stream: S,
request: Request,
config: Option<WebSocketConfig>
) -> Result<MidHandshake<Self>>
[src]
stream: S,
request: Request,
config: Option<WebSocketConfig>
) -> Result<MidHandshake<Self>>
Initiate a client handshake.
Trait Implementations
impl<S: Read + Write> HandshakeRole for ClientHandshake<S>
[src]
impl<S: Read + Write> HandshakeRole for ClientHandshake<S>
[src]type IncomingData = Response
type InternalStream = S
type FinalResult = (WebSocket<S>, Response)
fn stage_finished(
&mut self,
finish: StageResult<Self::IncomingData, Self::InternalStream>
) -> Result<ProcessingResult<Self::InternalStream, Self::FinalResult>>
[src]
&mut self,
finish: StageResult<Self::IncomingData, Self::InternalStream>
) -> Result<ProcessingResult<Self::InternalStream, Self::FinalResult>>
Auto Trait Implementations
impl<S> RefUnwindSafe for ClientHandshake<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for ClientHandshake<S> where
S: Send,
S: Send,
impl<S> Sync for ClientHandshake<S> where
S: Sync,
S: Sync,
impl<S> Unpin for ClientHandshake<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for ClientHandshake<S> where
S: UnwindSafe,
S: UnwindSafe,