#[non_exhaustive]pub struct AfkTimeout(/* private fields */);
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 u16
impl PartialEq<AfkTimeout> for u16
source§impl PartialEq<u16> for AfkTimeout
impl PartialEq<u16> for AfkTimeout
source§impl PartialEq for AfkTimeout
impl PartialEq for AfkTimeout
source§impl Serialize for AfkTimeout
impl Serialize for AfkTimeout
impl Copy for AfkTimeout
impl Eq for AfkTimeout
impl StructuralPartialEq for AfkTimeout
Auto Trait Implementations§
impl Freeze for AfkTimeout
impl RefUnwindSafe for AfkTimeout
impl Send for AfkTimeout
impl Sync for AfkTimeout
impl Unpin for AfkTimeout
impl UnwindSafe for AfkTimeout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)