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§
Source§impl<S: Debug> Debug for MidHandshakeSslStream<S>
impl<S: Debug> Debug for MidHandshakeSslStream<S>
Source§impl<S> MidHandshakeSslStreamExt for MidHandshakeSslStream<S>
impl<S> MidHandshakeSslStreamExt for MidHandshakeSslStream<S>
Source§fn client_hello_received(&self) -> bool
fn client_hello_received(&self) -> bool
Returns
true
iff break_on_client_hello
was set and the handshake
has progressed to that point.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