pub struct NoneTokenLog;Expand description
Null implementation of TokenLog, which never accepts tokens
Trait Implementations§
Source§impl TokenLog for NoneTokenLog
impl TokenLog for NoneTokenLog
Source§fn check_and_insert(
&self,
_: u128,
_: SystemTime,
_: Duration,
) -> Result<(), TokenReuseError>
fn check_and_insert( &self, _: u128, _: SystemTime, _: Duration, ) -> Result<(), TokenReuseError>
Record that the token was used and, ideally, return a token reuse error if the token may
have been already used previously Read more
Auto Trait Implementations§
impl Freeze for NoneTokenLog
impl RefUnwindSafe for NoneTokenLog
impl Send for NoneTokenLog
impl Sync for NoneTokenLog
impl Unpin for NoneTokenLog
impl UnwindSafe for NoneTokenLog
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 more