[][src]Struct henry::RatelimitBucket

pub struct RatelimitBucket<K> { /* fields omitted */ }

Implementations

impl<K: Eq + Hash + Debug> RatelimitBucket<K>[src]

pub fn new(cap: u16) -> Self[src]

pub async fn try_call<'_>(&'_ self, key: K) -> bool[src]

Auto Trait Implementations

impl<K> !RefUnwindSafe for RatelimitBucket<K>

impl<K> Send for RatelimitBucket<K> where
    K: Send

impl<K> Sync for RatelimitBucket<K> where
    K: Send + Sync

impl<K> Unpin for RatelimitBucket<K>

impl<K> UnwindSafe for RatelimitBucket<K> where
    K: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.