pub struct InMemoryAcmeDns {
published: Mutex<BTreeMap<String, Vec<String>>>,
caa: Mutex<BTreeMap<String, IssuancePolicy>>,
}Expand description
The in-memory double: what this crate’s own tests use, and a model for a production implementation’s bookkeeping.
Deliberately not wired to didbot-dns’s InMemoryDns: this one holds a
whole set per name and replaces it, so it checks DnsProviderAdapter’s
diff-per-value join from outside rather than sharing its bookkeeping.
Fields§
§published: Mutex<BTreeMap<String, Vec<String>>>§caa: Mutex<BTreeMap<String, IssuancePolicy>>Implementations§
Trait Implementations§
Source§impl AcmeDnsChallenge for InMemoryAcmeDns
impl AcmeDnsChallenge for InMemoryAcmeDns
Source§fn publish_challenge(
&self,
name: &str,
values: &[String],
) -> Result<(), AcmeDnsError>
fn publish_challenge( &self, name: &str, values: &[String], ) -> Result<(), AcmeDnsError>
Publishes exactly
values as TXT records at name, replacing
whatever this backend had published there before. Read moreSource§fn clear_challenge(&self, name: &str) -> Result<(), AcmeDnsError>
fn clear_challenge(&self, name: &str) -> Result<(), AcmeDnsError>
Removes every value published at
name. Read moreSource§impl Debug for InMemoryAcmeDns
impl Debug for InMemoryAcmeDns
Source§impl Default for InMemoryAcmeDns
impl Default for InMemoryAcmeDns
Source§fn default() -> InMemoryAcmeDns
fn default() -> InMemoryAcmeDns
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryAcmeDns
impl RefUnwindSafe for InMemoryAcmeDns
impl Send for InMemoryAcmeDns
impl Sync for InMemoryAcmeDns
impl Unpin for InMemoryAcmeDns
impl UnsafeUnpin for InMemoryAcmeDns
impl UnwindSafe for InMemoryAcmeDns
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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