pub struct HostConfig { /* private fields */ }
Implementations§
Source§impl HostConfig
impl HostConfig
pub fn is_empty(&self) -> bool
pub fn search_by_ip(&self, ip: &IpAddr) -> Option<&HostnameEntry>
pub fn search_by_fqdn( &self, qtype: &QType, name: &str, ) -> Option<&HostnameEntry>
pub fn parse_host_file_internal(file_content: String) -> CDnsResult<Self>
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HostConfig
impl Debug for HostConfig
Auto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnwindSafe for HostConfig
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