fn collect_port(&self, port_match: &polixy::server::Port) -> Option<Vec<u16>> {
        match port_match {
            polixy::server::Port::Number(ref port) => Some(vec![*port]),
            polixy::server::Port::Name(ref name) => self.by_name.get(name).cloned(),
        }
    }
/// Finds all ports on this pod that match a server's port reference.
///
/// Numeric port matches will only return a single server, generally, while named port
/// references may select an arbitrary number of server ports.
Finds all ports on this pod that match a server's port reference.
Numeric port matches will only return a single server, generally, while named port
references may select an arbitrary number of server ports.
Finds all ports on this pod that match a server ' s port reference . Numeric port matches will only return a single server generally while named port references may select an arbitrary number of server ports .
fn collect_port(&self, port_match: &polixy::server::Port) -> Option<Vec<u16>> {
        match port_match {
            polixy::server::Port::Number(ref port) => Some(vec![*port]),
            polixy::server::Port::Name(ref name) => self.by_name.get(name).cloned(),
        }
    }
fn collect_port ( & self , port_match : & polixy :: server :: Port ) -> Option < Vec < u16 > > { match port_match { polixy :: server :: Port :: Number ( ref port ) => Some ( vec ! [ port ] ) , polixy :: server :: Port :: Name ( ref name ) => self . by_name . get ( name ) . cloned ( ) , } }
Finds all ports on this pod that match a server's port reference.
Finds all ports on this pod that match a server ' s port reference .
&self
port_match
&polixy::server::Port
&self
port_match
&polixy::server::Port