pub fn interval(duration: Duration) -> Interval {
        Interval {
            timer: Some(Delay::new(Duration::from_secs(0))),
            interval: duration,
        }
    }
/// Creates new Interval that yields with interval of duration.
Creates new Interval that yields with interval of duration.
Creates new Interval that yields with interval of duration .
pub fn interval(duration: Duration) -> Interval {
        Interval {
            timer: Some(Delay::new(Duration::from_secs(0))),
            interval: duration,
        }
    }
pub fn interval ( duration : Duration ) -> Interval { Interval { timer : Some ( Delay :: new ( Duration :: from_secs ( 0 ) ) ) , interval : duration , } }
Creates new Interval that yields with interval of duration.
Creates new Interval that yields with interval of duration .
duration
Duration
duration
Duration