/// Multicasts and handles a message. Does nothing if we are only an observer.
Multicasts and handles a message. Does nothing if we are only an observer.
Multicasts and handles a message . Does nothing if we are only an observer .
fn send(&mut self, msg: &Message) -> Result<Step<N>> {
        if !self.netinfo.is_validator() {
            return self.try_output();
        }
        let step: Step<_> = Target::all().message(msg.clone()).into();
        let our_id = &self.netinfo.our_id().clone();
        Ok(step.join(self.handle_message(our_id, &msg)?))
    }
fn send ( & mut self , msg : & Message ) -> Result < Step < N > > { if ! self . netinfo . is_validator ( ) { return self . try_output ( ) ; } let step : Step < _ > = Target :: all ( ) . message ( msg . clone ( ) ) . into ( ) ; let our_id = & self . netinfo . our_id ( ) . clone ( ) ; Ok ( step . join ( self . handle_message ( our_id , & msg ) ? ) ) }
Multicasts and handles a message.
Multicasts and handles a message .
&mut self
msg
&Message