pub struct ResolveConfEntry { /* private fields */ }
Expand description
A resolve.conf parser
Implementations§
Source§impl ResolveConfEntry
impl ResolveConfEntry
pub fn new( ip: SocketAddr, tls_url: Option<String>, adapter_ip: SocketAddr, ) -> CDnsResult<Self>
pub fn get_resolver_ip(&self) -> IpAddr
pub fn get_resolver_sa(&self) -> &SocketAddr
pub fn get_tls_domain(&self) -> Option<&String>
pub fn get_adapter_ip(&self) -> &SocketAddr
pub fn get_tls_type(&self) -> ConfigEntryTls
pub fn get_tls_path(&self) -> Option<&String>
Trait Implementations§
Source§impl Clone for ResolveConfEntry
impl Clone for ResolveConfEntry
Source§fn clone(&self) -> ResolveConfEntry
fn clone(&self) -> ResolveConfEntry
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 ResolveConfEntry
impl Debug for ResolveConfEntry
Source§impl PartialEq for ResolveConfEntry
impl PartialEq for ResolveConfEntry
impl Eq for ResolveConfEntry
impl StructuralPartialEq for ResolveConfEntry
Auto Trait Implementations§
impl Freeze for ResolveConfEntry
impl RefUnwindSafe for ResolveConfEntry
impl Send for ResolveConfEntry
impl Sync for ResolveConfEntry
impl Unpin for ResolveConfEntry
impl UnwindSafe for ResolveConfEntry
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