/// Sends the current temperature information to the server and retrieve the
/// current temperature information of all points.
Sends the current temperature information to the server and retrieve the
current temperature information of all points.
Sends the current temperature information to the server and retrieve the current temperature information of all points .
pub fn send(&self, temp: f32) -> SimulationResults {
        let response = self
            .client
            .post(&self.host)
            .body(
                to_string(&LocalInfo {
                    x: self.x,
                    y: self.y,
                    temp,
                    r#type: self.r#type,
                })
                .unwrap(),
            )
            .send()
            .unwrap();
        let body = response.text().unwrap();
        let body: SimulationResults = from_str(&body).unwrap();
        body
    }
pub fn send ( & self , temp : f32 ) -> SimulationResults { let response = self . client . post ( & self . host ) . body ( to_string ( & LocalInfo { x : self . x , y : self . y , temp , r#type : self . r#type , } ) . unwrap ( ) , ) . send ( ) . unwrap ( ) ; let body = response . text ( ) . unwrap ( ) ; let body : SimulationResults = from_str ( & body ) . unwrap ( ) ; body }
Sends the current temperature information to the server and retrieve the
current temperature information of all points.
Sends the current temperature information to the server and retrieve the current temperature information of all points .
&self
temp
f32