Trait perseus::utils::PerseusDuration
source · pub trait PerseusDuration {
// Required method
fn into_computed(self) -> Result<ComputedDuration, InvalidDuration>;
}
Expand description
A trait that represents anything we’ll accept for specifying durations
for revalidation. Anything that implements thus must be able to be
transformed into a ComputedDuration
;
Required Methods§
sourcefn into_computed(self) -> Result<ComputedDuration, InvalidDuration>
fn into_computed(self) -> Result<ComputedDuration, InvalidDuration>
Converts this into a [ComputedDuration]
for use in Perseus’
internal revalidation systems.