fn find_evictable_connection(&self) -> Option<ConnectionTuple> {
        for (tuple, endpoint) in self.connections.iter() {
            if endpoint.is_evictable() {
                return Some(*tuple);
            }
        }
        None
    }
// TODO: I guess this should be refactored at some point to also remove the endpoint if found.
I guess this should be refactored at some point to also remove the endpoint if found.
I guess this should be refactored at some point to also remove the endpoint if found .
fn find_evictable_connection(&self) -> Option<ConnectionTuple> {
        for (tuple, endpoint) in self.connections.iter() {
            if endpoint.is_evictable() {
                return Some(*tuple);
            }
        }
        None
    }
fn find_evictable_connection ( & self ) -> Option < ConnectionTuple > { for ( tuple , endpoint ) in self . connections . iter ( ) { if endpoint . is_evictable ( ) { return Some ( * tuple ) ; } } None }
TODO: I guess this should be refactored at some point to also remove the endpoint if found.
TODO : I guess this should be refactored at some point to also remove the endpoint if found .
&self
&self