pub trait Lease { type Id: Copy + Eq + Hash + PartialEq; fn id(&self) -> Self::Id; fn timeout(&self) -> Instant; }
The value returned need not be equal, even for two consecutive calls.