pub(super) fn unmark_outgoing(&mut self, now: Instant) -> bool {
        match self {
            ConnectionSymmetry::IncomingOnly { .. } => {
                warn!("incoming-only unmarked outgoing");
                true
            }
            ConnectionSymmetry::OutgoingOnly { .. } => {
                // With neither incoming, nor outgoing connections, the symmetry is finally gone.
                *self = ConnectionSymmetry::Gone;
                debug!("outgoing connection unmarked, now gone");

                false
            }
            ConnectionSymmetry::Symmetric { peer_addrs } => {
                *self = ConnectionSymmetry::IncomingOnly {
                    peer_addrs: mem::take(peer_addrs),
                    since: now,
                };
                debug!("symmetric connection unmarked, now outgoing only");

                true
            }
            ConnectionSymmetry::Gone => {
                warn!("gone marked outgoing");
                false
            }
        }
    }
/// Unmarks a connection as having an outgoing connection.
///
/// Returns `false` if the `ConnectionSymmetry` should be removed after this.
Unmarks a connection as having an outgoing connection.
Returns `false` if the `ConnectionSymmetry` should be removed after this.
Unmarks a connection as having an outgoing connection . Returns ` false ` if the ` ConnectionSymmetry ` should be removed after this .
pub(super) fn unmark_outgoing(&mut self, now: Instant) -> bool {
        match self {
            ConnectionSymmetry::IncomingOnly { .. } => {
                warn!("incoming-only unmarked outgoing");
                true
            }
            ConnectionSymmetry::OutgoingOnly { .. } => {
                // With neither incoming, nor outgoing connections, the symmetry is finally gone.
                *self = ConnectionSymmetry::Gone;
                debug!("outgoing connection unmarked, now gone");
                false
            }
            ConnectionSymmetry::Symmetric { peer_addrs } => {
                *self = ConnectionSymmetry::IncomingOnly {
                    peer_addrs: mem::take(peer_addrs),
                    since: now,
                };
                debug!("symmetric connection unmarked, now outgoing only");
                true
            }
            ConnectionSymmetry::Gone => {
                warn!("gone marked outgoing");
                false
            }
        }
    }
pub ( super ) fn unmark_outgoing ( & mut self , now : Instant ) -> bool { match self { ConnectionSymmetry :: IncomingOnly { .. } => { warn ! ( " " ) ; true } ConnectionSymmetry :: OutgoingOnly { .. } => { // With neither incoming, nor outgoing connections, the symmetry is finally gone. * self = ConnectionSymmetry :: Gone ; debug ! ( " " ) ; false } ConnectionSymmetry :: Symmetric { peer_addrs } => { * self = ConnectionSymmetry :: IncomingOnly { peer_addrs : mem :: take ( peer_addrs ) , since : now , } ; debug ! ( " " ) ; true } ConnectionSymmetry :: Gone => { warn ! ( " " ) ; false } } }
Unmarks a connection as having an outgoing connection.
Unmarks a connection as having an outgoing connection .
&mut self
now
Instant
&mut self
now
Instant