pub struct IPNode {
pub children: HashMap<u64, Box<IPNode>>,
pub network: Option<IpNet>,
}Fields§
§children: HashMap<u64, Box<IPNode>>§network: Option<IpNet>Implementations§
Trait Implementations§
Source§impl BaseNode for IPNode
impl BaseNode for IPNode
Source§fn children_mut(&mut self) -> &mut HashMap<u64, Box<IPNode>>
fn children_mut(&mut self) -> &mut HashMap<u64, Box<IPNode>>
Returns mutable reference to children as a trait object
Source§fn host_string(&self) -> Option<String>
fn host_string(&self) -> Option<String>
Returns the host as a string if present
Source§fn prune(&mut self) -> usizewhere
Self: Sized,
fn prune(&mut self) -> usizewhere
Self: Sized,
Prune dead child nodes recursively, returns number pruned
Auto Trait Implementations§
impl Freeze for IPNode
impl RefUnwindSafe for IPNode
impl Send for IPNode
impl Sync for IPNode
impl Unpin for IPNode
impl UnwindSafe for IPNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more