pub struct SOAResult { /* private fields */ }
Expand description
The result of a successful SOA lookup.
Implementations
sourceimpl SOAResult
impl SOAResult
sourcepub fn parse_from(data: &[u8]) -> Result<SOAResult>
pub fn parse_from(data: &[u8]) -> Result<SOAResult>
Obtain an SOAResult
from the response to an SOA lookup.
sourcepub fn name_server(&self) -> &CStr
pub fn name_server(&self) -> &CStr
Returns the name server from this SOAResult
.
In practice this is very likely to be a valid UTF-8 string, but the underlying c-ares
library does not guarantee this - so we leave it to users to decide whether they prefer a
fallible conversion, a lossy conversion, or something else altogether.
sourcepub fn hostmaster(&self) -> &CStr
pub fn hostmaster(&self) -> &CStr
Returns the hostmaster from this SOAResult
.
In practice this is very likely to be a valid UTF-8 string, but the underlying c-ares
library does not guarantee this - so we leave it to users to decide whether they prefer a
fallible conversion, a lossy conversion, or something else altogether.
Trait Implementations
impl Send for SOAResult
impl Sync for SOAResult
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more