pub struct Global { /* private fields */ }
Expand description
Ratelimit for all buckets encountered.
Implementations§
source§impl Global
impl Global
sourcepub const fn retry_after(&self) -> u64
pub const fn retry_after(&self) -> u64
Number of seconds to wait before retrying.
sourcepub const fn scope(&self) -> Option<RatelimitScope>
pub const fn scope(&self) -> Option<RatelimitScope>
Scope of the ratelimit.
This should always be present and should always be
RatelimitScope::Global
.
Trait Implementations§
impl Eq for Global
impl StructuralPartialEq for Global
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
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
)