1 2 3 4 5 6 7 8 9 10 11 12 13
//! `Retry` has a method also called `run` — a name collision with //! `scheduler::run` that name-only matching gets wrong. #[derive(Default)] pub struct Retry { attempts: u32, } impl Retry { pub fn run(&self) { println!("retry {}", self.attempts); } }