pub struct CAAResult<'a> { /* private fields */ }
Expand description
The contents of a single CAA record.
Implementations§
source§impl<'a> CAAResult<'a>
impl<'a> CAAResult<'a>
sourcepub fn property(self) -> &'a CStr
pub fn property(self) -> &'a CStr
The property represented by this CAAResult
.
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 value(self) -> &'a CStr
pub fn value(self) -> &'a CStr
The value represented by this CAAResult
.
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<'a> Copy for CAAResult<'a>
impl<'a> Send for CAAResult<'a>
impl<'a> Sync for CAAResult<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CAAResult<'a>
impl<'a> Unpin for CAAResult<'a>
impl<'a> UnwindSafe for CAAResult<'a>
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