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.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MidHandshakeSslStream<S>
impl<S> RefUnwindSafe for MidHandshakeSslStream<S>where
S: RefUnwindSafe,
impl<S> Send for MidHandshakeSslStream<S>where
S: Send,
impl<S> Sync for MidHandshakeSslStream<S>where
S: Sync,
impl<S> Unpin for MidHandshakeSslStream<S>where
S: Unpin,
impl<S> UnwindSafe for MidHandshakeSslStream<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more