pub fn current_leases(&self) -> impl IntoIterator<Item = OpenLease> {
        self.leases
            .lock()
            .iter()
            .map(|(_, open)| open.clone())
            .collect::<Vec<_>>()
    }
/// Iterate over all currently open leases.
Iterate over all currently open leases.
Iterate over all currently open leases .
pub fn current_leases(&self) -> impl IntoIterator<Item = OpenLease> {
        self.leases
            .lock()
            .iter()
            .map(|(_, open)| open.clone())
            .collect::<Vec<_>>()
    }
pub fn current_leases ( & self ) -> impl IntoIterator < Item = OpenLease > { self . leases . lock ( ) . iter ( ) . map ( | ( _ , open ) | open . clone ( ) ) . collect :: < Vec < _ > > ( ) }
Iterate over all currently open leases.
Iterate over all currently open leases .
&self
&self