Struct lers::solver::Http01Solver
source · pub struct Http01Solver { /* private fields */ }
Available on crate feature
http-01
only.Expand description
A bare-bones implementation of a solver for the HTTP-01 challenge.
Implementations§
source§impl Http01Solver
impl Http01Solver
sourcepub fn start(&self, address: &SocketAddr) -> Result<SolverHandle<Error>>
pub fn start(&self, address: &SocketAddr) -> Result<SolverHandle<Error>>
Start the solver in a separate task listening on the given address
sourcepub fn start_with_listener(
&self,
listener: TcpListener
) -> Result<SolverHandle<Error>>
pub fn start_with_listener( &self, listener: TcpListener ) -> Result<SolverHandle<Error>>
Start the solver in a separate task using the given listener
Trait Implementations§
source§impl Clone for Http01Solver
impl Clone for Http01Solver
source§fn clone(&self) -> Http01Solver
fn clone(&self) -> Http01Solver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Http01Solver
impl Debug for Http01Solver
source§impl Default for Http01Solver
impl Default for Http01Solver
source§fn default() -> Http01Solver
fn default() -> Http01Solver
Returns the “default value” for a type. Read more
source§impl Solver for Http01Solver
impl Solver for Http01Solver
source§fn present<'life0, 'async_trait>(
&'life0 self,
domain: String,
token: String,
key_authorization: String
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn present<'life0, 'async_trait>( &'life0 self, domain: String, token: String, key_authorization: String ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Makes the solution to a challenge available to be solved.
source§fn cleanup<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cleanup<'life0, 'life1, 'async_trait>( &'life0 self, token: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Used to clean-up the challenge if
Solver::present
ends in a non-error state.