pub struct TlsAlpnSolver {
storage: Arc<dyn CertStorage>,
cache: RwLock<HashMap<String, Cached>>,
ttl: Duration,
}Fields§
§storage: Arc<dyn CertStorage>§cache: RwLock<HashMap<String, Cached>>§ttl: DurationImplementations§
Source§impl TlsAlpnSolver
impl TlsAlpnSolver
pub fn new(storage: Arc<dyn CertStorage>) -> Arc<Self> ⓘ
pub fn with_ttl(storage: Arc<dyn CertStorage>, ttl: Duration) -> Arc<Self> ⓘ
fn cache_insert(&self, domain: &str, key_auth: &str) -> Result<(), AcmeError>
fn cache_remove(&self, domain: &str)
Sourcepub async fn register(
&self,
domain: &str,
key_auth: &str,
) -> Result<(), AcmeError>
pub async fn register( &self, domain: &str, key_auth: &str, ) -> Result<(), AcmeError>
Registers a pending validation: persisted (for peers) and cached (for this instance’s resolver).
pub async fn clear(&self, domain: &str) -> Result<(), AcmeError>
Trait Implementations§
Source§impl ChallengeSolver for TlsAlpnSolver
impl ChallengeSolver for TlsAlpnSolver
Auto Trait Implementations§
impl !Freeze for TlsAlpnSolver
impl !RefUnwindSafe for TlsAlpnSolver
impl !UnwindSafe for TlsAlpnSolver
impl Send for TlsAlpnSolver
impl Sync for TlsAlpnSolver
impl Unpin for TlsAlpnSolver
impl UnsafeUnpin for TlsAlpnSolver
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more