pub trait Expired {
// Required method
fn is_expired(&self) -> bool;
}Expand description
Trait for types that can expire
Required Methods§
Sourcefn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Checks if the data has expired
§Returns
true- The data has expired and should be removedfalse- The data is still valid