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