ureq

Trait TlsConnector

Source
pub trait TlsConnector: Send + Sync {
    // Required method
    fn connect(
        &self,
        dns_name: &str,
        io: Box<dyn ReadWrite>,
    ) -> Result<Box<dyn ReadWrite>, Error>;
}

Required Methods§

Source

fn connect( &self, dns_name: &str, io: Box<dyn ReadWrite>, ) -> Result<Box<dyn ReadWrite>, Error>

Implementations on Foreign Types§

Source§

impl TlsConnector for Arc<ClientConfig>

Available on crate feature tls only.
Source§

fn connect( &self, dns_name: &str, io: Box<dyn ReadWrite>, ) -> Result<Box<dyn ReadWrite>, Error>

Source§

impl TlsConnector for TlsConnector

Available on crate feature native-tls only.
Source§

fn connect( &self, dns_name: &str, io: Box<dyn ReadWrite>, ) -> Result<Box<dyn ReadWrite>, Error>

Implementors§