pub struct AcmeClient { /* private fields */ }Implementations§
Source§impl AcmeClient
impl AcmeClient
pub fn new(config: AcmeConfig) -> Self
Sourcepub fn initialize(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>
pub fn initialize(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>
Initialize the ACME client by creating or loading an account
Sourcepub async fn obtain_certificate(
&self,
domains: &[String],
) -> Result<(String, String), Box<dyn Error + Send + Sync>>
pub async fn obtain_certificate( &self, domains: &[String], ) -> Result<(String, String), Box<dyn Error + Send + Sync>>
Request a certificate for the given domains
pub fn handles_acme_challenge(&self, path: &str) -> bool
pub async fn get_acme_challenge_response(&self, token: &str) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcmeClient
impl RefUnwindSafe for AcmeClient
impl Send for AcmeClient
impl Sync for AcmeClient
impl Unpin for AcmeClient
impl UnwindSafe for AcmeClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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