pub trait DeboaHttpConnectionPool: Sealed {
// Required methods
fn new() -> Self;
fn connections(&self) -> &HashMap<String, DeboaConnection>;
fn create_connection<'a, 'life0, 'life1, 'async_trait>(
&'a mut self,
url: Arc<Url>,
protocol: &'life0 HttpVersion,
client_cert: &'life1 Option<ClientCert>,
) -> Pin<Box<dyn Future<Output = Result<&'a mut DeboaConnection>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait that represents the HTTP connection pool.
Required Methods§
Sourcefn connections(&self) -> &HashMap<String, DeboaConnection>
fn connections(&self) -> &HashMap<String, DeboaConnection>
Sourcefn create_connection<'a, 'life0, 'life1, 'async_trait>(
&'a mut self,
url: Arc<Url>,
protocol: &'life0 HttpVersion,
client_cert: &'life1 Option<ClientCert>,
) -> Pin<Box<dyn Future<Output = Result<&'a mut DeboaConnection>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_connection<'a, 'life0, 'life1, 'async_trait>(
&'a mut self,
url: Arc<Url>,
protocol: &'life0 HttpVersion,
client_cert: &'life1 Option<ClientCert>,
) -> Pin<Box<dyn Future<Output = Result<&'a mut DeboaConnection>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".