async fn send_message(
        &self,
        node: &Rc<dyn Node>,
        msg: &Message,
    ) -> Result<MessageReturn, Error> {
        let result = node.handle_message(msg).await;
        match result.as_ref() {
            Ok(r) => {
                fx_vlog!(1, "{} -> {}: msg={:?}; res={:?}", self.name(), node.name(), msg, r);
            }
            Err(e) => {
                fx_log_err!("{} -> {}: msg={:?}; res={:?}", self.name(), node.name(), msg, e);
            }
        }
        result
    }
/// Send a message to another node
///
/// This is implemented as a future to support scenarios where
/// a node wishes to send messages to multiple other nodes.
/// Errors are logged automatically.
Send a message to another node
This is implemented as a future to support scenarios where
a node wishes to send messages to multiple other nodes.
Errors are logged automatically.
Send a message to another node This is implemented as a future to support scenarios where a node wishes to send messages to multiple other nodes . Errors are logged automatically .
async fn send_message(
        &self,
        node: &Rc<dyn Node>,
        msg: &Message,
    ) -> Result<MessageReturn, Error> {
        let result = node.handle_message(msg).await;
        match result.as_ref() {
            Ok(r) => {
                fx_vlog!(1, "{} -> {}: msg={:?}; res={:?}", self.name(), node.name(), msg, r);
            }
            Err(e) => {
                fx_log_err!("{} -> {}: msg={:?}; res={:?}", self.name(), node.name(), msg, e);
            }
        }
        result
    }
async fn send_message ( & self , node : & Rc < dyn Node > , msg : & Message , ) -> Result < MessageReturn , Error > { let result = node . handle_message ( msg ) . await ; match result . as_ref ( ) { Ok ( r ) => { fx_vlog ! ( 1 " " self name ( ) node name ( ) msg r ) ; } Err ( e ) => { fx_log_err ! ( " " self name ( ) node name ( ) msg e ) ; } } result }
Send a message to another node
This is implemented as a future to support scenarios where
a node wishes to send messages to multiple other nodes.
Send a message to another node This is implemented as a future to support scenarios where a node wishes to send messages to multiple other nodes .
&self
node
&Rc<dyn Node>
msg
&Message