pub struct SessionStartLimit {
pub max_concurrency: u16,
pub remaining: u32,
pub reset_after: u64,
pub total: u32,
}
Expand description
Current gateway session utilization status.
Most bots have a max_concurrency
of 1 and a total
of 1000, but this is
increased for those with large bot sharding (in more than 150,000 guilds).
See Discord Docs/Sharding for Large Bots.
Fields§
§max_concurrency: u16
Maximum number of session that may be started concurrently.
remaining: u32
Number of remaining sessions for a given time period.
reset_after: u64
Milliseconds until remaining
resets back to total
.
total: u32
Total number of sessions that can be started within the given time period.
Trait Implementations§
source§impl Clone for SessionStartLimit
impl Clone for SessionStartLimit
source§fn clone(&self) -> SessionStartLimit
fn clone(&self) -> SessionStartLimit
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 SessionStartLimit
impl Debug for SessionStartLimit
source§impl<'de> Deserialize<'de> for SessionStartLimit
impl<'de> Deserialize<'de> for SessionStartLimit
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 Hash for SessionStartLimit
impl Hash for SessionStartLimit
source§impl PartialEq for SessionStartLimit
impl PartialEq for SessionStartLimit
source§impl Serialize for SessionStartLimit
impl Serialize for SessionStartLimit
impl Eq for SessionStartLimit
impl StructuralPartialEq for SessionStartLimit
Auto Trait Implementations§
impl Freeze for SessionStartLimit
impl RefUnwindSafe for SessionStartLimit
impl Send for SessionStartLimit
impl Sync for SessionStartLimit
impl Unpin for SessionStartLimit
impl UnwindSafe for SessionStartLimit
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
)