[−][src]Struct resolv::Resolver
Implementations
impl Resolver
[src]
pub fn new() -> Option<Resolver>
[src]
pub fn option(&mut self, option: ResolverOption, value: bool)
[src]
Set or unset an option
pub fn search(
&mut self,
name: &[u8],
class: Class,
typ: RecordType
) -> Result<Response, Error>
[src]
&mut self,
name: &[u8],
class: Class,
typ: RecordType
) -> Result<Response, Error>
Lookup the record. Applies the search algorithm to the domain name given
(if not fully qualified, it completes it using rules specified in resolv.conf
search entries). In addition, this also searches your hosts file. Applies
recursion if available and not turned off (it is on by default).
This is the highest level resolver routine, and is the one called by gethostbyname.
pub fn query(
&mut self,
dname: &[u8],
class: Class,
typ: RecordType
) -> Result<Response, Error>
[src]
&mut self,
dname: &[u8],
class: Class,
typ: RecordType
) -> Result<Response, Error>
Lookup the record. Does not apply the search algorithm, so dname
must be a complete
domain name, and only DNS will be consulted (not your hosts file). Applies recursion
if available and not turned off (it is on by default).
Auto Trait Implementations
impl RefUnwindSafe for Resolver
impl !Send for Resolver
impl !Sync for Resolver
impl Unpin for Resolver
impl UnwindSafe for Resolver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,