pub trait CanExpire {
// Required method
fn is_expired(&self) -> bool;
}Expand description
The CanExpire trait defines a function for implementations to determine if
the value has expired.
Required Methods§
sourcefn is_expired(&self) -> bool
fn is_expired(&self) -> bool
is_expired returns whether the value has expired.