/// Send Update SPU message Request to an Spu
Send Update SPU message Request to an Spu
Send Update SPU message Request to an Spu
async fn send_update_spu_msg_request<'a>(
        &'a self,
        spu: &'a SpuKV,
        spu_msgs: Vec<SpuMsg>,
    ) -> Result<(), ScServerError> {
        trace!("{:#?}", spu_msgs);
        let request = UpdateSpuRequest::new(spu_msgs);
        let mut message = RequestMessage::new_request(request);
        message.get_mut_header().set_client_id("controller");
        self.send_msg(spu.id(), &message).await?;
        Ok(())
    }
async fn send_update_spu_msg_request < ' a > ( & ' a self , spu : & ' a SpuKV , spu_msgs : Vec < SpuMsg > , ) -> Result < ( ) , ScServerError > { trace ! ( " " spu_msgs ) ; let request = UpdateSpuRequest :: new ( spu_msgs ) ; let mut message = RequestMessage :: new_request ( request ) ; message . get_mut_header ( ) . set_client_id ( " " ) ; self . send_msg ( spu . id ( ) , & message ) . await ? ; Ok ( ( ) ) }
Send Update SPU message Request to an Spu
Send Update SPU message Request to an Spu
&'a self
spu
&'a SpuKV
spu_msgs
Vec<SpuMsg>