async fn resolve(
        &mut self,
        addr: &Address,
        reply: &Sender<NodeReplyResult>,
        wrap: bool,
    ) -> Result<()> {
        trace!("Resolving worker address '{}'", addr);

        match self.internal.get(addr) {
            Some(sender) => reply.send(NodeReply::sender(
                addr.clone(),
                sender.as_ref().clone(),
                wrap,
            )),
            None => reply.send(NodeReply::no_such_worker(addr.clone())),
        }
        .await
        .expect("Ockam node internal I/O failed!");

        Ok(())
    }
/// Receive an address and resolve it to a sender
///
/// This function only applies to local address types, and will
/// fail to resolve a correct address if it given a remote
/// address.
Receive an address and resolve it to a sender
This function only applies to local address types, and will
fail to resolve a correct address if it given a remote
address.
Receive an address and resolve it to a sender This function only applies to local address types and will fail to resolve a correct address if it given a remote address .
async fn resolve(
        &mut self,
        addr: &Address,
        reply: &Sender<NodeReplyResult>,
        wrap: bool,
    ) -> Result<()> {
        trace!("Resolving worker address '{}'", addr);
        match self.internal.get(addr) {
            Some(sender) => reply.send(NodeReply::sender(
                addr.clone(),
                sender.as_ref().clone(),
                wrap,
            )),
            None => reply.send(NodeReply::no_such_worker(addr.clone())),
        }
        .await
        .expect("Ockam node internal I/O failed!");
        Ok(())
    }
async fn resolve ( & mut self , addr : & Address , reply : & Sender < NodeReplyResult > , wrap : bool , ) -> Result < ( ) > { trace ! ( " " addr ) ; match self . internal . get ( addr ) { Some ( sender ) => reply . send ( NodeReply :: sender ( addr . clone ( ) , sender . as_ref ( ) . clone ( ) , wrap , ) ) , None => reply . send ( NodeReply :: no_such_worker ( addr . clone ( ) ) ) , } . await . expect ( " " ) ; Ok ( ( ) ) }
Receive an address and resolve it to a sender
This function only applies to local address types, and will
fail to resolve a correct address if it given a remote
address.
Receive an address and resolve it to a sender This function only applies to local address types and will fail to resolve a correct address if it given a remote address .
&mut self
addr
&Address
reply
&Sender<NodeReplyResult>
wrap
bool