fn should_be_reaped(
        connection_symmetry: &ConnectionSymmetry,
        now: Instant,
        max_time_asymmetric: Duration,
    ) -> bool {
        match connection_symmetry {
            ConnectionSymmetry::IncomingOnly { since, .. } => now >= *since + max_time_asymmetric,
            ConnectionSymmetry::OutgoingOnly { since } => now >= *since + max_time_asymmetric,
            ConnectionSymmetry::Symmetric { .. } => false,
            ConnectionSymmetry::Gone => true,
        }
    }
/// Indicates whether or not a connection should be cleaned up.
Indicates whether or not a connection should be cleaned up.
Indicates whether or not a connection should be cleaned up .
fn should_be_reaped(
        connection_symmetry: &ConnectionSymmetry,
        now: Instant,
        max_time_asymmetric: Duration,
    ) -> bool {
        match connection_symmetry {
            ConnectionSymmetry::IncomingOnly { since, .. } => now >= *since + max_time_asymmetric,
            ConnectionSymmetry::OutgoingOnly { since } => now >= *since + max_time_asymmetric,
            ConnectionSymmetry::Symmetric { .. } => false,
            ConnectionSymmetry::Gone => true,
        }
    }
fn should_be_reaped ( connection_symmetry : & ConnectionSymmetry , now : Instant , max_time_asymmetric : Duration , ) -> bool { match connection_symmetry { ConnectionSymmetry :: IncomingOnly { since , .. } => now >= * since + max_time_asymmetric , ConnectionSymmetry :: OutgoingOnly { since } => now >= * since + max_time_asymmetric , ConnectionSymmetry :: Symmetric { .. } => false , ConnectionSymmetry :: Gone => true , } }
Indicates whether or not a connection should be cleaned up.
Indicates whether or not a connection should be cleaned up .
connection_symmetry
&ConnectionSymmetry
now
Instant
max_time_asymmetric
Duration
connection_symmetry
&ConnectionSymmetry
now
Instant
max_time_asymmetric
Duration