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

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

A async_io connector that uses async-tls (a rustls wrapper). This uses TLS.

Implementations

impl ConnectorTls[src]

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

Create a new async_io 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 async_io 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.