pub struct MidHandshakeSslStream<S> { /* private fields */ }Expand description
An SSL stream midway through the handshake process.
Implementations§
source§impl<S> MidHandshakeSslStream<S>
impl<S> MidHandshakeSslStream<S>
sourcepub fn context(&self) -> &SslContext
pub fn context(&self) -> &SslContext
Returns a shared reference to the SslContext of the stream.
sourcepub fn context_mut(&mut self) -> &mut SslContext
pub fn context_mut(&mut self) -> &mut SslContext
Returns a mutable reference to the SslContext of the stream.
sourcepub fn server_auth_completed(&self) -> bool
pub fn server_auth_completed(&self) -> bool
Returns true iff break_on_server_auth was set and the handshake has
progressed to that point.
sourcepub fn client_cert_requested(&self) -> bool
pub fn client_cert_requested(&self) -> bool
Returns true iff break_on_cert_requested was set and the handshake
has progressed to that point.
sourcepub fn would_block(&self) -> bool
pub fn would_block(&self) -> bool
Returns true iff the underlying stream returned an error with the
WouldBlock kind.
sourcepub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
pub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
Restarts the handshake process.