awt 0.1.0

A simulation engine which can emulate a client/server with multiple requests.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{simulation::Server, Attribute};

#[allow(dead_code)]
pub struct ServerData {
    pub id: usize,
    pub attributes: Vec<Attribute>,
}

impl From<&Server> for ServerData {
    fn from(server: &Server) -> Self {
        Self {
            id: server.id(),
            attributes: server.attributes().clone(),
        }
    }
}