pub(in crate::controller) fn node_addr_for(&self, name: &str) -> Result<NodeIndex, String> {
        match self.inc {
            Some(ref inc) => {
                // `name` might be an alias for another identical query, so resolve if needed
                let na = match self.resolve_alias(name) {
                    None => inc.get_query_address(name),
                    Some(ref internal_qn) => inc.get_query_address(internal_qn),
                };
                match na {
                    None => Err(format!(
                        "No query endpoint for \"{}\" exists at v{}.",
                        name, self.version
                    )),
                    Some(na) => Ok(na),
                }
            }
            None => Err("Recipe not applied".to_string()),
        }
    }
/// Obtains the `NodeIndex` for the node corresponding to a named query or a write type.
Obtains the `NodeIndex` for the node corresponding to a named query or a write type.
Obtains the ` NodeIndex ` for the node corresponding to a named query or a write type .
pub(in crate::controller) fn node_addr_for(&self, name: &str) -> Result<NodeIndex, String> {
        match self.inc {
            Some(ref inc) => {
                // `name` might be an alias for another identical query, so resolve if needed
                let na = match self.resolve_alias(name) {
                    None => inc.get_query_address(name),
                    Some(ref internal_qn) => inc.get_query_address(internal_qn),
                };
                match na {
                    None => Err(format!(
                        "No query endpoint for \"{}\" exists at v{}.",
                        name, self.version
                    )),
                    Some(na) => Ok(na),
                }
            }
            None => Err("Recipe not applied".to_string()),
        }
    }
pub ( in crate :: controller ) fn node_addr_for ( & self , name : & str ) -> Result < NodeIndex , String > { match self . inc { Some ( ref inc ) => { // `name` might be an alias for another identical query, so resolve if needed let na = match self . resolve_alias ( name ) { None => inc . get_query_address ( name ) , Some ( ref internal_qn ) => inc . get_query_address ( internal_qn ) , } ; match na { None => Err ( format ! ( " \" \" " name self version ) ) , Some ( na ) => Ok ( na ) , } } None => Err ( " " . to_string ( ) ) , } }
Obtains the `NodeIndex` for the node corresponding to a named query or a write type.
Obtains the ` NodeIndex ` for the node corresponding to a named query or a write type .
&self
name
&str
&self
name
&str