pub struct UnavailableReplayStore;Expand description
A ReplayStore that always fails — for exercising the fail-closed path in tests (a replay
store outage must still reject).
Trait Implementations§
Source§fn put_if_absent<'life0, 'life1, 'async_trait>(
&'life0 self,
_jti: &'life1 str,
_ttl: Duration,
) -> Pin<Box<dyn Future<Output = Result<bool, ReplayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_if_absent<'life0, 'life1, 'async_trait>(
&'life0 self,
_jti: &'life1 str,
_ttl: Duration,
) -> Pin<Box<dyn Future<Output = Result<bool, ReplayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Atomically records
jti if and only if it is not already present. Read moreAuto Trait Implementations§
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