[][src]Struct brokaw::raw::TlsConfig

pub struct TlsConfig { /* fields omitted */ }

TLS configuration for an NntpConnection

Implementations

impl TlsConfig[src]

pub fn new(domain: String, connector: TlsConnector) -> Self[src]

Create a TlsConfig for use with NntpConnections

The domain will be passed to TlsConnector::connect for certificate validation during any TLS handshakes.

pub fn default_connector(domain: impl AsRef<str>) -> Result<Self>[src]

Create a TlsConfig with the system default TLS settings

The domain will be used to validate server certs during any TLS handshakes.

pub fn connector(&self) -> &TlsConnector[src]

The TlsConnector associated with the config

Trait Implementations

impl Clone for TlsConfig[src]

impl Debug for TlsConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.