pub struct TlsConnector { /* private fields */ }
Expand description
A TlsConnect
implementation using the openssl
crate.
Implementations§
Source§impl TlsConnector
impl TlsConnector
Sourcepub fn new(ssl: ConnectConfiguration, domain: &str) -> TlsConnector
pub fn new(ssl: ConnectConfiguration, domain: &str) -> TlsConnector
Creates a new connector configured to connect to the specified domain.
Trait Implementations§
Source§impl<S> TlsConnect<S> for TlsConnector
impl<S> TlsConnect<S> for TlsConnector
Source§type Error = HandshakeError<S>
type Error = HandshakeError<S>
The error type returned by the future.
Source§type Future = TlsConnectFuture<S>
type Future = TlsConnectFuture<S>
The future returned by the connector.
Source§fn connect(self, stream: S) -> TlsConnectFuture<S>
fn connect(self, stream: S) -> TlsConnectFuture<S>
Returns a future performing a TLS handshake over the stream.
Auto Trait Implementations§
impl Freeze for TlsConnector
impl RefUnwindSafe for TlsConnector
impl Send for TlsConnector
impl Sync for TlsConnector
impl Unpin for TlsConnector
impl UnwindSafe for TlsConnector
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