Struct twilight_model::guild::AfkTimeout
source · #[non_exhaustive]pub struct AfkTimeout(_);
Expand description
Duration of a user being AFK before being timed out from a voice channel.
This value is configured for guilds.
Examples
use twilight_model::guild::AfkTimeout;
assert_eq!(300, AfkTimeout::FIVE_MINUTES);
Implementations§
source§impl AfkTimeout
impl AfkTimeout
sourcepub const ONE_MINUTE: Self = _
pub const ONE_MINUTE: Self = _
AFK timeout of one minute.
sourcepub const FIVE_MINUTES: Self = _
pub const FIVE_MINUTES: Self = _
AFK timeout of five minutes.
sourcepub const FIFTEEN_MINUTES: Self = _
pub const FIFTEEN_MINUTES: Self = _
AFK timeout of fifteen minutes.
sourcepub const THIRTY_MINUTES: Self = _
pub const THIRTY_MINUTES: Self = _
AFK timeout of thirty minutes.
Trait Implementations§
source§impl Clone for AfkTimeout
impl Clone for AfkTimeout
source§fn clone(&self) -> AfkTimeout
fn clone(&self) -> AfkTimeout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AfkTimeout
impl Debug for AfkTimeout
source§impl<'de> Deserialize<'de> for AfkTimeout
impl<'de> Deserialize<'de> for AfkTimeout
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<AfkTimeout> for Duration
impl From<AfkTimeout> for Duration
source§fn from(value: AfkTimeout) -> Self
fn from(value: AfkTimeout) -> Self
Converts to this type from the input type.
source§impl From<u16> for AfkTimeout
impl From<u16> for AfkTimeout
source§impl Hash for AfkTimeout
impl Hash for AfkTimeout
source§impl PartialEq<AfkTimeout> for AfkTimeout
impl PartialEq<AfkTimeout> for AfkTimeout
source§fn eq(&self, other: &AfkTimeout) -> bool
fn eq(&self, other: &AfkTimeout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<AfkTimeout> for u16
impl PartialEq<AfkTimeout> for u16
source§fn eq(&self, other: &AfkTimeout) -> bool
fn eq(&self, other: &AfkTimeout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.