async_tungstenite::tokio::tls

Type Alias Connector

Source
pub type Connector = TlsConnector;

Aliased Type§

struct Connector { /* private fields */ }

Implementations

Source§

impl TlsConnector

Source

pub fn connect<IO>( &self, domain: ServerName<'static>, stream: IO, ) -> Connect<IO>
where IO: AsyncRead + AsyncWrite + Unpin,

Source

pub fn connect_with<IO, F>( &self, domain: ServerName<'static>, stream: IO, f: F, ) -> Connect<IO>

Source

pub fn config(&self) -> &Arc<ClientConfig>

Get a read-only reference to underlying config

Trait Implementations

Source§

impl Clone for TlsConnector

Source§

fn clone(&self) -> TlsConnector

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<Arc<ClientConfig>> for TlsConnector

Source§

fn from(inner: Arc<ClientConfig>) -> TlsConnector

Converts to this type from the input type.