1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//! Fast, minimalist web framework for Rust
/// Describes the xxhttp server
pub struct Server {
ipv4addr: u32,
}
impl Server {
/// Get bounded IP of Server instance
pub fn getip(&self) -> u32 {
self.ipv4addr
}
}
/// Returns the instance of Server.
pub fn xxhttp_server() -> Server {
let s = Server { ipv4addr: 1 };
s
}
#[cfg(test)]
mod tests {
//use super::*;
#[test]
fn it_works() {
assert_eq!(1, 1);
}
}