pub(super) fn mark_outgoing(&mut self, now: Instant) -> bool {
        match self {
            ConnectionSymmetry::IncomingOnly { peer_addrs, .. } => {
                // Connection is now complete.
                debug!("incoming connection marked outgoing, now complete");
                *self = ConnectionSymmetry::Symmetric {
                    peer_addrs: mem::take(peer_addrs),
                };
                true
            }
            ConnectionSymmetry::OutgoingOnly { .. } => {
                warn!("outgoing connection marked outgoing");
                false
            }
            ConnectionSymmetry::Symmetric { .. } => {
                warn!("symmetric connection marked outgoing");
                false
            }
            ConnectionSymmetry::Gone => {
                *self = ConnectionSymmetry::OutgoingOnly { since: now };
                debug!("absent connection marked outgoing");
                false
            }
        }
    }
/// Marks a connection as having an outgoing connection.
///
/// Returns true, if the connection achieved symmetry with this change.
Marks a connection as having an outgoing connection.
Returns true, if the connection achieved symmetry with this change.
Marks a connection as having an outgoing connection . Returns true if the connection achieved symmetry with this change .
pub(super) fn mark_outgoing(&mut self, now: Instant) -> bool {
        match self {
            ConnectionSymmetry::IncomingOnly { peer_addrs, .. } => {
                // Connection is now complete.
                debug!("incoming connection marked outgoing, now complete");
                *self = ConnectionSymmetry::Symmetric {
                    peer_addrs: mem::take(peer_addrs),
                };
                true
            }
            ConnectionSymmetry::OutgoingOnly { .. } => {
                warn!("outgoing connection marked outgoing");
                false
            }
            ConnectionSymmetry::Symmetric { .. } => {
                warn!("symmetric connection marked outgoing");
                false
            }
            ConnectionSymmetry::Gone => {
                *self = ConnectionSymmetry::OutgoingOnly { since: now };
                debug!("absent connection marked outgoing");
                false
            }
        }
    }
pub ( super ) fn mark_outgoing ( & mut self , now : Instant ) -> bool { match self { ConnectionSymmetry :: IncomingOnly { peer_addrs , .. } => { // Connection is now complete. debug ! ( " " ) ; * self = ConnectionSymmetry :: Symmetric { peer_addrs : mem :: take ( peer_addrs ) , } ; true } ConnectionSymmetry :: OutgoingOnly { .. } => { warn ! ( " " ) ; false } ConnectionSymmetry :: Symmetric { .. } => { warn ! ( " " ) ; false } ConnectionSymmetry :: Gone => { * self = ConnectionSymmetry :: OutgoingOnly { since : now } ; debug ! ( " " ) ; false } } }
Marks a connection as having an outgoing connection.
Marks a connection as having an outgoing connection .
&mut self
now
Instant
&mut self
now
Instant