pub struct NoneTokenLog;展开描述
TokenLog 的空实现,从不接受任何 token
trait 实现§
源代码§impl TokenLog for NoneTokenLog
impl TokenLog for NoneTokenLog
源代码§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 更多信息
自动 trait 实现§
impl Freeze for NoneTokenLog
impl RefUnwindSafe for NoneTokenLog
impl Send for NoneTokenLog
impl Sync for NoneTokenLog
impl Unpin for NoneTokenLog
impl UnsafeUnpin for NoneTokenLog
impl UnwindSafe for NoneTokenLog
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息