Function transportation::set_interval [−][src]
pub fn set_interval(
callback: impl Fn() + 'static,
interval: Duration
) -> usize
Call callback after interval time has passed, then again once every interval. Returns an identifier that is unique across insert_listener, set_timeout, and set_interval that can be used with the clear_interval function.