[][src]Struct governor::NotUntil

pub struct NotUntil<'a, P: Reference> { /* fields omitted */ }

A negative rate-limiting outcome.

NotUntil's methods indicate when a caller can expect the next positive rate-limiting result.

Methods

impl<'a, P: Reference> NotUntil<'a, P>[src]

pub fn earliest_possible(&self) -> P[src]

Returns the earliest time at which a decision could be conforming (excluding conforming decisions made by the Decider that are made in the meantime).

pub fn wait_time_from(&self, from: P) -> Duration[src]

Returns the minimum amount of time from the time that the decision was made that must pass before a decision can be conforming.

If the time of the next expected positive result is in the past, wait_time_from returns a zero Duration.

Trait Implementations

impl<'a, P: PartialEq + Reference> PartialEq<NotUntil<'a, P>> for NotUntil<'a, P>[src]

impl<'a, P: Reference> Display for NotUntil<'a, P>[src]

impl<'a, P: Debug + Reference> Debug for NotUntil<'a, P>[src]

impl<'a, P: Reference> StructuralPartialEq for NotUntil<'a, P>[src]

Auto Trait Implementations

impl<'a, P> Send for NotUntil<'a, P>

impl<'a, P> Sync for NotUntil<'a, P>

impl<'a, P> Unpin for NotUntil<'a, P>

impl<'a, P> UnwindSafe for NotUntil<'a, P> where
    P: RefUnwindSafe

impl<'a, P> RefUnwindSafe for NotUntil<'a, P> where
    P: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,