pub fn to_duration(&self) -> Duration {
    Duration::from_secs(match self {
      CyclePeriod::Period0 => 3,
      CyclePeriod::Period1 => 100,
      CyclePeriod::Period2 => 300,
    })
  }
/// Returns a Duration for this CyclePeriod.
Returns a Duration for this CyclePeriod.
Returns a Duration for this CyclePeriod .
pub fn to_duration(&self) -> Duration {
    Duration::from_secs(match self {
      CyclePeriod::Period0 => 3,
      CyclePeriod::Period1 => 100,
      CyclePeriod::Period2 => 300,
    })
  }
pub fn to_duration ( & self ) -> Duration { Duration :: from_secs ( match self { CyclePeriod :: Period0 => 3 , CyclePeriod :: Period1 => 100 , CyclePeriod :: Period2 => 300 , } ) }
Returns a Duration for this CyclePeriod.
Returns a Duration for this CyclePeriod .
&self
&self