pub struct RequestWindow { /* private fields */ }Expand description
Caller-supplied moving window for a uniquely outstanding complete imprint.
RFC3161 §6 requires the requester to remember hashes and establish their uniqueness. This value asserts that caller-owned precondition; it neither keeps that history nor proves the request imprint or signature matches.
Implementations§
Source§impl RequestWindow
impl RequestWindow
Sourcepub fn for_unique_imprint(start: Instant, end: Instant) -> Option<Self>
pub fn for_unique_imprint(start: Instant, end: Instant) -> Option<Self>
Admits ordered endpoints. Caller tolerance must already be in them.
Trait Implementations§
Source§impl Clone for RequestWindow
impl Clone for RequestWindow
impl Copy for RequestWindow
Source§impl Debug for RequestWindow
impl Debug for RequestWindow
impl Eq for RequestWindow
Source§impl PartialEq for RequestWindow
impl PartialEq for RequestWindow
impl StructuralPartialEq for RequestWindow
Auto Trait Implementations§
impl Freeze for RequestWindow
impl RefUnwindSafe for RequestWindow
impl Send for RequestWindow
impl Sync for RequestWindow
impl Unpin for RequestWindow
impl UnsafeUnpin for RequestWindow
impl UnwindSafe for RequestWindow
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