Struct tungstenite::handshake::client::ClientHandshake [−][src]
pub struct ClientHandshake<S> { /* fields omitted */ }Client handshake role.
Methods
impl<S: Read + Write> ClientHandshake<S>[src]
impl<S: Read + Write> ClientHandshake<S>pub fn start(
stream: S,
request: Request,
config: Option<WebSocketConfig>
) -> MidHandshake<Self>[src]
pub fn start(
stream: S,
request: Request,
config: Option<WebSocketConfig>
) -> MidHandshake<Self>Initiate a client handshake.
Trait Implementations
impl<S: Debug> Debug for ClientHandshake<S>[src]
impl<S: Debug> Debug for ClientHandshake<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S: Read + Write> HandshakeRole for ClientHandshake<S>[src]
impl<S: Read + Write> HandshakeRole for ClientHandshake<S>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]
fn stage_finished(
&mut self,
finish: StageResult<Self::IncomingData, Self::InternalStream>
) -> Result<ProcessingResult<Self::InternalStream, Self::FinalResult>>Auto Trait Implementations
impl<S> Send for ClientHandshake<S> where
S: Send,
impl<S> Send for ClientHandshake<S> where
S: Send, impl<S> Sync for ClientHandshake<S> where
S: Sync,
impl<S> Sync for ClientHandshake<S> where
S: Sync,