pub struct TlsConnector { /* private fields */ }Expand description
A TlsConnect implementation using rustls.
Implementations§
Source§impl TlsConnector
impl TlsConnector
Sourcepub fn new(config: Arc<ClientConfig>, domain: &str) -> TlsConnector
pub fn new(config: Arc<ClientConfig>, domain: &str) -> TlsConnector
Creates a new connector configured to connect to the specified domain, which may also be an IP address. One that is not a valid server name fails the handshake, not this.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TlsConnector
impl !UnwindSafe for TlsConnector
impl Freeze for TlsConnector
impl Send for TlsConnector
impl Sync for TlsConnector
impl Unpin for TlsConnector
impl UnsafeUnpin 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