Struct cdns_rs::cfg_host_parser::HostConfig
source · 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, f: &mut Writer ) -> CDnsResult<Self>
Trait Implementations§
source§impl CacheOperations for HostConfig
impl CacheOperations for HostConfig
An /etc/hosts file parser
fn is_reload_allowed(&self) -> bool
source§impl CacheOperations for HostConfig
impl CacheOperations for HostConfig
An /etc/hosts file parser
fn is_reload_allowed(&self) -> bool
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 ConfigParser<HostConfig> for HostConfig
impl ConfigParser<HostConfig> for HostConfig
fn parse_config<'async_trait>(
) -> Pin<Box<dyn Future<Output = CDnsResult<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
fn get_file_path() -> &'static Path
fn is_default(&self) -> bool
source§impl ConfigParser<HostConfig> for HostConfig
impl ConfigParser<HostConfig> for HostConfig
fn parse_config() -> CDnsResult<Self>
fn get_file_path() -> &'static Path
fn is_default(&self) -> bool
source§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