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]
ⓘImportant traits for &'a mut Rpub fn get_ref(&self) -> &S[src]
ⓘImportant traits for &'a mut R
Returns a shared reference to the inner stream.
ⓘImportant traits for &'a mut Rpub fn get_mut(&mut self) -> &mut S[src]
ⓘImportant traits for &'a mut R
Returns a mutable reference to the inner stream.
pub fn ssl(&self) -> &SslRef[src]
Returns a shared reference to the Ssl of the stream.
pub fn error(&self) -> &Error[src]
Returns the underlying error which interrupted this handshake.
pub fn into_error(self) -> Error[src]
Consumes self, returning its error.
pub fn handshake(self) -> Result<SslStream<S>, HandshakeError<S>>[src]
Restarts the handshake process.
This corresponds to SSL_do_handshake.