Completed implementation of FromString for IpAddr

This commit is contained in:
2023-02-11 16:15:28 +00:00
parent 2033d9b2b8
commit 247587d99b
5 changed files with 110 additions and 72 deletions

14
src/networking/mod.rs Normal file
View File

@ -0,0 +1,14 @@
mod ip;
use ip::IpAddr;
#[allow(unused)]
pub struct Network {
network_address: IpAddr,
broadcast_addr: IpAddr,
subnet_mask: Option<IpAddr>
}
impl Network {
// pub fn generate_subnets(self) -> Vec<Network> {}
// fn get_net_id(self) -> u8 {}
}