Completed implementation of FromString for IpAddr
This commit is contained in:
14
src/networking/mod.rs
Normal file
14
src/networking/mod.rs
Normal 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 {}
|
||||
}
|
Reference in New Issue
Block a user