pub struct SslStreamBuilder<S> { /* private fields */ }Expand description
A partially constructed SslStream, useful for unusual handshakes.
Implementations§
Source§impl<S> SslStreamBuilder<S>
impl<S> SslStreamBuilder<S>
Sourcepub async fn accept(self) -> Result<SslStream<S>, HandshakeError<S>>
pub async fn accept(self) -> Result<SslStream<S>, HandshakeError<S>>
Initiates a client-side TLS handshake.
Sourcepub async fn connect(self) -> Result<SslStream<S>, HandshakeError<S>>
pub async fn connect(self) -> Result<SslStream<S>, HandshakeError<S>>
Initiates a server-side TLS handshake.
Auto Trait Implementations§
impl<S> Freeze for SslStreamBuilder<S>
impl<S> RefUnwindSafe for SslStreamBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for SslStreamBuilder<S>where
S: Send,
impl<S> Sync for SslStreamBuilder<S>where
S: Sync,
impl<S> Unpin for SslStreamBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for SslStreamBuilder<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