pub struct RequireValidSeqNum;Expand description
Rejects a signed Interest whose signature sequence number isn’t strictly greater than the last one seen from the same signer, and rejects signed Interests with no sequence number. Unsigned Interests are always accepted.
Unlike RequireValidTime, the first Interest seen from a signer is
accepted unconditionally and simply establishes the baseline, since a
sequence number (unlike a timestamp) carries no external notion of
“too old” to check it against.
Implementations§
Source§impl RequireValidSeqNum
impl RequireValidSeqNum
pub fn new() -> RequireValidSeqNum
Trait Implementations§
Source§impl Clone for RequireValidSeqNum
impl Clone for RequireValidSeqNum
Source§fn clone(&self) -> RequireValidSeqNum
fn clone(&self) -> RequireValidSeqNum
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequireValidSeqNum
Source§impl Debug for RequireValidSeqNum
impl Debug for RequireValidSeqNum
Source§impl Default for RequireValidSeqNum
impl Default for RequireValidSeqNum
Source§fn default() -> RequireValidSeqNum
fn default() -> RequireValidSeqNum
Returns the “default value” for a type. Read more
Source§impl Hash for RequireValidSeqNum
impl Hash for RequireValidSeqNum
Source§impl InterestVerifier for RequireValidSeqNum
impl InterestVerifier for RequireValidSeqNum
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
interest: &'life1 Interest<Bytes>,
context: Arc<RwLock<TypeMap>>,
_app_handler: AppHandler,
_signature_verifiers: &'life2 (dyn ToVerifier + Sync),
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for RequireValidSeqNum
impl RefUnwindSafe for RequireValidSeqNum
impl Send for RequireValidSeqNum
impl Sync for RequireValidSeqNum
impl Unpin for RequireValidSeqNum
impl UnsafeUnpin for RequireValidSeqNum
impl UnwindSafe for RequireValidSeqNum
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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