[−][src]Struct twitchchat::connector::tokio::ConnectorNativeTls
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]
A: ToSocketAddrs,
D: Into<String>,
Create a new
tokio
(using tokio-native-tls
)
TLS connector with a custom address and TLS domain.
Trait Implementations
impl Clone for ConnectorNativeTls
[src]
fn clone(&self) -> ConnectorNativeTls
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Connector for ConnectorNativeTls
[src]
type Output = Mutex<Compat<TlsStream<TcpStream>>>
Output IO type returned by calling connect
Read more
fn connect(&mut self) -> BoxedFuture<Result<Self::Output>>
[src]
impl Debug for ConnectorNativeTls
[src]
impl PartialEq<ConnectorNativeTls> for ConnectorNativeTls
[src]
fn eq(&self, other: &ConnectorNativeTls) -> bool
[src]
fn ne(&self, other: &ConnectorNativeTls) -> bool
[src]
impl StructuralPartialEq for ConnectorNativeTls
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectorNativeTls
impl Send for ConnectorNativeTls
impl Sync for ConnectorNativeTls
impl Unpin for ConnectorNativeTls
impl UnwindSafe for ConnectorNativeTls
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,