pub struct NoCooldown;Expand description
No cooldown is kept: raw fixtures and probes outside a store’s lifetime.
Trait Implementations§
Source§impl Cooldown for NoCooldown
impl Cooldown for NoCooldown
Source§fn remaining(&self) -> Option<Duration>
fn remaining(&self) -> Option<Duration>
The live cooldown’s remaining wait, measured monotonically.
Source§fn record<'life0, 'async_trait>(
&'life0 self,
__arg1: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record<'life0, 'async_trait>(
&'life0 self,
__arg1: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Arm and persist a wait the provider requested, before any consumer can
retry. A failure is returned; it never permits an immediate retry.
Auto Trait Implementations§
impl Freeze for NoCooldown
impl RefUnwindSafe for NoCooldown
impl Send for NoCooldown
impl Sync for NoCooldown
impl Unpin for NoCooldown
impl UnsafeUnpin for NoCooldown
impl UnwindSafe for NoCooldown
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.