pub fn has_connection_recently_failed(&self, now: Instant) -> bool {
        if let Some(last_failure) = self.last_failure {
            // Recent times and future times are considered live
            now.saturating_duration_since(last_failure) <= constants::MIN_PEER_RECONNECTION_DELAY
        } else {
            // If there has never been any failure, it can't possibly be recent
            false
        }
    }
/// Have we recently had a failed connection to this peer?
///
/// Returns `true` if this peer has recently failed.
Have we recently had a failed connection to this peer.
Returns `true` if this peer has recently failed.
Have we recently had a failed connection to this peer . Returns ` true ` if this peer has recently failed .
pub fn has_connection_recently_failed(&self, now: Instant) -> bool {
        if let Some(last_failure) = self.last_failure {
            // Recent times and future times are considered live
            now.saturating_duration_since(last_failure) <= constants::MIN_PEER_RECONNECTION_DELAY
        } else {
            // If there has never been any failure, it can't possibly be recent
            false
        }
    }
pub fn has_connection_recently_failed ( & self , now : Instant ) -> bool { if let Some ( last_failure ) = self . last_failure { // Recent times and future times are considered live now . saturating_duration_since ( last_failure ) <= constants :: MIN_PEER_RECONNECTION_DELAY } else { // If there has never been any failure, it can't possibly be recent false } }
Have we recently had a failed connection to this peer?
Have we recently had a failed connection to this peer?
&self
now
Instant