pub struct DnsNode {
pub children: HashMap<u64, Box<DnsNode>>,
pub host: Option<String>,
}Fields§
§children: HashMap<u64, Box<DnsNode>>§host: Option<String>Implementations§
Trait Implementations§
Source§impl BaseNode for DnsNode
impl BaseNode for DnsNode
Source§fn children_mut(&mut self) -> &mut HashMap<u64, Box<DnsNode>>
fn children_mut(&mut self) -> &mut HashMap<u64, Box<DnsNode>>
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 DnsNode
impl RefUnwindSafe for DnsNode
impl Send for DnsNode
impl Sync for DnsNode
impl Unpin for DnsNode
impl UnwindSafe for DnsNode
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