[][src]Struct twitchchat::runner::Channel

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

A channel that you are on.

This is exposed for 'advanced' users who want to modify the rate limiter.

Warning

You shouldn't need to touch this unless you have a good reason to do so.

Improperly using this could result in Twitch disconnecting you, at best and a ban at worst.

Implementations

impl Channel[src]

pub fn set_rate_class(&mut self, rate_class: RateClass)[src]

Set the RateClass for this channel

pub fn enable_slow_mode(&mut self, duration: u64)[src]

Mark this channel as being under slow mode for duration

pub fn disable_slow_mode(&mut self)[src]

Mark this channel as not being in slow mode

pub fn set_rate_limited(&mut self)[src]

Mark that you've been rate limited on this channel

pub fn reset_rate_limit(&mut self)[src]

Reset to the default rate class

Trait Implementations

impl Debug for Channel[src]

Auto Trait Implementations

impl RefUnwindSafe for Channel

impl Send for Channel

impl Sync for Channel

impl Unpin for Channel

impl UnwindSafe for Channel

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, 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.