Struct linkcheck::validation::CacheEntry [−][src]
pub struct CacheEntry {
pub timestamp: SystemTime,
pub valid: bool,
}
Expand description
A timestamped boolean used by the Cache
to keep track of the last time
a web crate::Link
was checked.
Fields
timestamp: SystemTime
When the CacheEntry
was created.
valid: bool
Did we find a valid resource the last time this crate::Link
was
checked?
Implementations
Create a new CacheEntry
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnwindSafe for CacheEntry
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more