pub fn untrusted_services(&self) -> Option<PeerServices> {
        match self {
            NewInitial { .. } => None,
            NewGossiped {
                untrusted_services, ..
            } => Some(*untrusted_services),
            NewAlternate {
                untrusted_services, ..
            } => Some(*untrusted_services),
            // TODO: create a "services implemented by Zebra" constant (#2324)
            NewLocal { .. } => Some(PeerServices::NODE_NETWORK),
            UpdateAttempt { .. } => None,
            // TODO: split untrusted and direct services (#2324)
            UpdateResponded { services, .. } => Some(*services),
            UpdateFailed { services, .. } => *services,
        }
    }
/// Return the untrusted services for this change, if available.
Return the untrusted services for this change, if available.
Return the untrusted services for this change if available .
pub fn untrusted_services(&self) -> Option<PeerServices> {
        match self {
            NewInitial { .. } => None,
            NewGossiped {
                untrusted_services, ..
            } => Some(*untrusted_services),
            NewAlternate {
                untrusted_services, ..
            } => Some(*untrusted_services),
            // TODO: create a "services implemented by Zebra" constant (#2324)
            NewLocal { .. } => Some(PeerServices::NODE_NETWORK),
            UpdateAttempt { .. } => None,
            // TODO: split untrusted and direct services (#2324)
            UpdateResponded { services, .. } => Some(*services),
            UpdateFailed { services, .. } => *services,
        }
    }
pub fn untrusted_services ( & self ) -> Option < PeerServices > { match self { NewInitial { .. } => None , NewGossiped { untrusted_services , .. } => Some ( * untrusted_services ) , NewAlternate { untrusted_services , .. } => Some ( * untrusted_services ) , // TODO: create a "services implemented by Zebra" constant (#2324) NewLocal { .. } => Some ( PeerServices :: NODE_NETWORK ) , UpdateAttempt { .. } => None , // TODO: split untrusted and direct services (#2324) UpdateResponded { services , .. } => Some ( * services ) , UpdateFailed { services , .. } => * services , } }
Return the untrusted services for this change, if available.
Return the untrusted services for this change if available .
&self