[−][src]Struct twitchchat::runner::Channel
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
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]
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, 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>,