pub struct InMemoryDns {
pub(crate) txt: TxtRecords,
pub(crate) caa: CaaRecords,
}Expand description
A provider that records everything and admits any hostname.
The test double for callers that want to assert on what a certificate
order asked for without also asserting on zone rules. It has no zone, so
it never returns DnsError::NotUnderZone.
Fields§
§txt: TxtRecords§caa: CaaRecordsImplementations§
Source§impl InMemoryDns
impl InMemoryDns
Trait Implementations§
Source§impl Debug for InMemoryDns
impl Debug for InMemoryDns
Source§impl Default for InMemoryDns
impl Default for InMemoryDns
Source§fn default() -> InMemoryDns
fn default() -> InMemoryDns
Returns the “default value” for a type. Read more
Source§impl DnsProvider for InMemoryDns
impl DnsProvider for InMemoryDns
Source§fn publish_txt(&self, host: &str, value: &str) -> Result<(), DnsError>
fn publish_txt(&self, host: &str, value: &str) -> Result<(), DnsError>
Adds
value to the set of TXT values published at host, leaving
any other values at that name untouched. Read moreAuto Trait Implementations§
impl !Freeze for InMemoryDns
impl RefUnwindSafe for InMemoryDns
impl Send for InMemoryDns
impl Sync for InMemoryDns
impl Unpin for InMemoryDns
impl UnsafeUnpin for InMemoryDns
impl UnwindSafe for InMemoryDns
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