blob: b9f0a08c06f2e881031a470c492245085329113a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
extern crate serde_json;
use std::io::BufRead;
use std::io::BufReader;
use std::net::TcpStream;
use mass::Mass;
pub fn client_dashboard(mut buff_r : BufReader<TcpStream>) {
loop {
let mut recv = String::new();
buff_r.read_line(&mut recv).unwrap();
let ship : Mass = serde_json::from_str(&recv).unwrap();
println!("{:?}", ship);
}
}
|