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