Struct openssl::ssl::MidHandshakeSslStream
[−]
[src]
pub struct MidHandshakeSslStream<S> { /* fields omitted */ }
An SSL stream midway through the handshake process.
Methods
impl<S> MidHandshakeSslStream<S>
[src]
fn get_ref(&self) -> &S
Returns a shared reference to the inner stream.
fn get_mut(&mut self) -> &mut S
Returns a mutable reference to the inner stream.
fn ssl(&self) -> &SslRef
Returns a shared reference to the Ssl
of the stream.
fn error(&self) -> &Error
Returns the underlying error which interrupted this handshake.
fn into_error(self) -> Error
Consumes self
, returning its error.
fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>
Restarts the handshake process.