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§

source

fn into_computed(self) -> Result<ComputedDuration, InvalidDuration>

Converts this into a [ComputedDuration] for use in Perseus’ internal revalidation systems.

Implementations on Foreign Types§

source§

impl PerseusDuration for &str

source§

impl PerseusDuration for Duration

source§

impl PerseusDuration for Duration

Implementors§