Struct trust_dns_resolver::Hosts [−][src]
pub struct Hosts { /* fields omitted */ }
Expand description
Configuration for the local hosts file
Implementations
impl Hosts
[src]
impl Hosts
[src]pub fn new() -> Hosts
[src]
pub fn new() -> Hosts
[src]Creates a new configuration from the system hosts file, only works for Windows and Unix-like OSes, will return empty configuration on others
pub fn lookup_static_host(&self, query: &Query) -> Option<Lookup>
[src]
pub fn lookup_static_host(&self, query: &Query) -> Option<Lookup>
[src]Look up the addresses for the given host from the system hosts file.
pub fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
[src]
pub fn insert(&mut self, name: Name, record_type: RecordType, lookup: Lookup)
[src]Insert a new Lookup for the associated Name
and RecordType
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Hosts
impl Send for Hosts
impl Sync for Hosts
impl Unpin for Hosts
impl UnwindSafe for Hosts
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,