[][src]Struct limitador::counter::Counter

pub struct Counter { /* fields omitted */ }

Implementations

impl Counter[src]

pub fn new(limit: Limit, set_variables: HashMap<String, String>) -> Counter[src]

pub fn limit(&self) -> &Limit[src]

pub fn max_value(&self) -> i64[src]

pub fn seconds(&self) -> u64[src]

pub fn namespace(&self) -> &Namespace[src]

pub fn set_variables(&self) -> &HashMap<String, String>[src]

pub fn remaining(&self) -> Option<i64>[src]

pub fn set_remaining(&mut self, remaining: i64)[src]

pub fn expires_in(&self) -> Option<Duration>[src]

pub fn set_expires_in(&mut self, duration: Duration)[src]

Trait Implementations

impl Clone for Counter[src]

impl Debug for Counter[src]

impl<'de> Deserialize<'de> for Counter[src]

impl Eq for Counter[src]

impl Hash for Counter[src]

impl PartialEq<Counter> for Counter[src]

impl Serialize for Counter[src]

impl StructuralEq for Counter[src]

Auto Trait Implementations

impl RefUnwindSafe for Counter

impl Send for Counter

impl Sync for Counter

impl Unpin for Counter

impl UnwindSafe for Counter

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.