pub struct DiffOptions { /* private fields */ }Expand description
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
The defaults: hosts pair by any shared address, certificates are expiring
within DEFAULT_EXPIRY_THRESHOLD, and each side is judged against its
own scan’s clock.
Sourcepub fn with_identity(self, identity: HostIdentity) -> Self
pub fn with_identity(self, identity: HostIdentity) -> Self
Sets what makes two records the same host.
Sourcepub fn with_expiry_threshold(self, threshold: Duration) -> Self
pub fn with_expiry_threshold(self, threshold: Duration) -> Self
Sets how long before it lapses a certificate counts as expiring.
Sourcepub fn as_of(self, at: SystemTime) -> Self
pub fn as_of(self, at: SystemTime) -> Self
Judges the current scan’s certificates as of at.
For asking where a stored scan’s certificates stand today. The baseline is still judged at its own clock, since the change is the two standings differing.
Sourcepub fn identity(&self) -> HostIdentity
pub fn identity(&self) -> HostIdentity
What makes two records the same host.
Sourcepub fn expiry_threshold(&self) -> Duration
pub fn expiry_threshold(&self) -> Duration
How long before it lapses a certificate counts as expiring.
Sourcepub fn as_of_time(&self) -> Option<SystemTime>
pub fn as_of_time(&self) -> Option<SystemTime>
The moment the current scan’s certificates are judged at, if the caller set one.
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§impl Debug for DiffOptions
impl Debug for DiffOptions
Source§impl Default for DiffOptions
impl Default for DiffOptions
impl Eq for DiffOptions
Source§impl PartialEq for DiffOptions
impl PartialEq for DiffOptions
impl StructuralPartialEq for DiffOptions
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptions
impl UnwindSafe for DiffOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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