/// 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
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
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 {
        let client = self.build_client();
        SmtpTransport {
            #[cfg(feature = "r2d2")]
            inner: Pool::builder()
                .min_idle(Some(0))
                .idle_timeout(Some(Duration::from_secs(60)))
                .build_unchecked(client),
            #[cfg(not(feature = "r2d2"))]
            inner: client,
        }
    }
pub fn build ( self ) -> SmtpTransport { let client = self . build_client ( ) ; SmtpTransport { # [ cfg ( feature " " ) ] inner : Pool :: builder ( ) . min_idle ( Some ( 0 ) ) . idle_timeout ( Some ( Duration :: from_secs ( 60 ) ) ) . build_unchecked ( client ) , # [ cfg ( not ( feature " " ) ) ] inner : client , } }
Build the transport
If the `r2d2` feature is enabled an `Arc` wrapped pool is be created.
Build the transport If the ` r2d2 ` feature is enabled an ` Arc ` wrapped pool is be created .
self