pub fn add_protocol_route<S: DiscoverableService>(
        &mut self,
        source: RouteEndpoint,
        targets: Vec<RouteEndpoint>,
    ) -> Result<&mut Self, Error> {
        self.add_route(CapabilityRoute {
            capability: Capability::protocol(S::SERVICE_NAME),
            source,
            targets,
        })
    }
/// Adds a protocol capability route between the `source` endpoint and
/// the provided `targets`.
Adds a protocol capability route between the `source` endpoint and
the provided `targets`.
Adds a protocol capability route between the ` source ` endpoint and the provided ` targets ` .
pub fn add_protocol_route<S: DiscoverableService>(
        &mut self,
        source: RouteEndpoint,
        targets: Vec<RouteEndpoint>,
    ) -> Result<&mut Self, Error> {
        self.add_route(CapabilityRoute {
            capability: Capability::protocol(S::SERVICE_NAME),
            source,
            targets,
        })
    }
pub fn add_protocol_route < S : DiscoverableService > ( & mut self , source : RouteEndpoint , targets : Vec < RouteEndpoint > , ) -> Result < & mut Self , Error > { self . add_route ( CapabilityRoute { capability : Capability :: protocol ( S :: SERVICE_NAME ) , source , targets , } ) }
Adds a protocol capability route between the `source` endpoint and
the provided `targets`.
Adds a protocol capability route between the ` source ` endpoint and the provided ` targets ` .
&mut self
source
RouteEndpoint
targets
Vec<RouteEndpoint>
&mut self
source
RouteEndpoint
targets
Vec<RouteEndpoint>