[][src]Struct twitchchat::connector::smol::ConnectorTls

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

A smol connector that uses async-tls (a rustls 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 ConnectorTls[src]

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

Create a new smol 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 smol TLS connector with a custom address and TLS domain.

Trait Implementations

impl Clone for ConnectorTls[src]

impl Connector for ConnectorTls[src]

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

Output IO type returned by calling connect Read more

impl Debug for ConnectorTls[src]

impl PartialEq<ConnectorTls> for ConnectorTls[src]

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