[][src]Struct twitchchat::Connector

pub struct Connector<IO> { /* fields omitted */ }

A connector type that acts as a factory for connecting to Twitch

Implementations

impl<IO> Connector<IO> where
    IO: AsyncRead + AsyncWrite,
    IO: Send + Sync + 'static, 
[src]

pub fn new<F, R>(connect_func: F) -> Self where
    F: Fn() -> R + Send + Sync + 'static,
    R: Future<Output = Result<IO, Error>> + Send + Sync + 'static, 
[src]

This is supported on feature="tokio" only.

Create a new connector with this factory function

Trait Implementations

impl<IO> Clone for Connector<IO>[src]

impl<IO> Debug for Connector<IO>[src]

Auto Trait Implementations

impl<IO> !RefUnwindSafe for Connector<IO>

impl<IO> Send for Connector<IO>

impl<IO> Sync for Connector<IO>

impl<IO> Unpin for Connector<IO>

impl<IO> !UnwindSafe for Connector<IO>

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.