pub fn recently_live_addr(&self, addr: &SocketAddr) -> bool {
        let _guard = self.span.enter();
        match self.by_addr.get(addr) {
            None => false,
            // NeverAttempted, Failed, and AttemptPending peers should never be live
            Some(peer) => {
                peer.last_connection_state == PeerAddrState::Responded
                    && peer.get_last_seen() > AddressBook::liveness_cutoff_time()
            }
        }
    }
/// Returns true if the given [`SocketAddr`] has recently sent us a message.
Returns true if the given [`SocketAddr`] has recently sent us a message.
Returns true if the given [ ` SocketAddr ` ] has recently sent us a message .
pub fn recently_live_addr(&self, addr: &SocketAddr) -> bool {
        let _guard = self.span.enter();
        match self.by_addr.get(addr) {
            None => false,
            // NeverAttempted, Failed, and AttemptPending peers should never be live
            Some(peer) => {
                peer.last_connection_state == PeerAddrState::Responded
                    && peer.get_last_seen() > AddressBook::liveness_cutoff_time()
            }
        }
    }
pub fn recently_live_addr ( & self , addr : & SocketAddr ) -> bool { let _guard = self . span . enter ( ) ; match self . by_addr . get ( addr ) { None => false , // NeverAttempted, Failed, and AttemptPending peers should never be live Some ( peer ) => { peer . last_connection_state == PeerAddrState :: Responded && peer . get_last_seen ( ) > AddressBook :: liveness_cutoff_time ( ) } } }
Returns true if the given [`SocketAddr`] has recently sent us a message.
Returns true if the given [ ` SocketAddr ` ] has recently sent us a message .
&self
addr
&SocketAddr