[−][src]Struct governor::NotUntil
A negative rate-limiting outcome.
NotUntil
's methods indicate when a caller can expect the next positive
rate-limiting result.
Implementations
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: Debug + Reference> Debug for NotUntil<'a, P>
[src]
impl<'a, P: Reference> Display for NotUntil<'a, P>
[src]
impl<'a, P: PartialEq + Reference> PartialEq<NotUntil<'a, P>> for NotUntil<'a, P>
[src]
fn eq(&self, other: &NotUntil<'a, P>) -> bool
[src]
fn ne(&self, other: &NotUntil<'a, P>) -> bool
[src]
impl<'a, P: Reference> StructuralPartialEq for NotUntil<'a, P>
[src]
Auto Trait Implementations
impl<'a, P> RefUnwindSafe for NotUntil<'a, P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, P> Send for NotUntil<'a, P>
impl<'a, P> Sync for NotUntil<'a, P>
impl<'a, P> Unpin for NotUntil<'a, P> where
P: Unpin,
P: Unpin,
impl<'a, P> UnwindSafe for NotUntil<'a, P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,