pub struct Present { /* private fields */ }
Expand description
Ratelimit for some bucket present.
Implementations§
source§impl Present
impl Present
sourcepub fn into_bucket(self) -> Option<String>
pub fn into_bucket(self) -> Option<String>
Consume the ratelimit headers, returning the owned bucket ID.
sourcepub const fn reset_after(&self) -> u64
pub const fn reset_after(&self) -> u64
Number of milliseconds until the bucket resets.
sourcepub const fn scope(&self) -> Option<RatelimitScope>
pub const fn scope(&self) -> Option<RatelimitScope>
Scope of the ratelimit.
Trait Implementations§
impl Eq for Present
impl StructuralPartialEq for Present
Auto Trait Implementations§
impl Freeze for Present
impl RefUnwindSafe for Present
impl Send for Present
impl Sync for Present
impl Unpin for Present
impl UnwindSafe for Present
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
)