pub struct NoneTokenLog;Available on crate feature
net only.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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Sourceยงfn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request