pool: document pool defaults
This commit is contained in:
committed by
Alexis Mousset
parent
c59f67d808
commit
a83f927109
@@ -145,7 +145,14 @@ impl SmtpTransportBuilder {
|
|||||||
SmtpTransport { inner: pool }
|
SmtpTransport { inner: pool }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Build the transport (with default pool if enabled)
|
/// Build the transport
|
||||||
|
///
|
||||||
|
/// If the `r2d2` feature is enabled an `Arc` wrapped pool is be created.
|
||||||
|
/// Defaults:
|
||||||
|
///
|
||||||
|
/// * 60 seconds idle timeout
|
||||||
|
/// * 30 minutes max connection lifetime
|
||||||
|
/// * max pool size of 10 connections
|
||||||
pub fn build(self) -> SmtpTransport {
|
pub fn build(self) -> SmtpTransport {
|
||||||
let client = self.build_client();
|
let client = self.build_client();
|
||||||
SmtpTransport {
|
SmtpTransport {
|
||||||
|
|||||||
Reference in New Issue
Block a user