pub struct NativeTlsClient { /* private fields */ }
Expand description
An SslClient
implementation using native-tls.
Implementations§
Source§impl NativeTlsClient
impl NativeTlsClient
Sourcepub fn new() -> Result<NativeTlsClient>
pub fn new() -> Result<NativeTlsClient>
Returns a NativeTlsClient
with a default configuration.
To customize the configuration, build a TlsConnector
and then use
NativeTlsClient
’s From
implementation.
Trait Implementations§
Source§impl From<TlsConnector> for NativeTlsClient
impl From<TlsConnector> for NativeTlsClient
Source§fn from(t: TlsConnector) -> NativeTlsClient
fn from(t: TlsConnector) -> NativeTlsClient
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeTlsClient
impl RefUnwindSafe for NativeTlsClient
impl Send for NativeTlsClient
impl Sync for NativeTlsClient
impl Unpin for NativeTlsClient
impl UnwindSafe for NativeTlsClient
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