[][src]Struct twitchchat::connector::tokio::ConnectorNativeTls

pub struct ConnectorNativeTls { /* fields omitted */ }
This is supported on crate feature async only.

A tokio connector that uses tokio-native-tls (a native-tls wrapper). This uses TLS.

To use this type, ensure you set up the 'TLS Domain' in the configuration.

The crate provides the 'TLS domain' for Twitch in the root of this crate.

Implementations

impl ConnectorNativeTls[src]

pub fn twitch() -> Result<Self>[src]

Create a new tokio (using tokio-native-tls) TLS connector that connects to the default Twitch address.

pub fn custom<A, D>(addrs: A, domain: D) -> Result<Self> where
    A: ToSocketAddrs,
    D: Into<String>, 
[src]

Create a new tokio (using tokio-native-tls) TLS connector with a custom address and TLS domain.

Trait Implementations

impl Clone for ConnectorNativeTls[src]

impl Connector for ConnectorNativeTls[src]

type Output = Mutex<Compat<TlsStream<TcpStream>>>

Output IO type returned by calling connect Read more

impl Debug for ConnectorNativeTls[src]

impl PartialEq<ConnectorNativeTls> for ConnectorNativeTls[src]

impl StructuralPartialEq for ConnectorNativeTls[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.