fn connect_default<'a, S>(
        domain: &'a str,
        stream: S,
    ) -> BoxFuture<'a, anyhow::Result<TlsStream>>
    where
        S: AsyncSocket,
    {
        BoxFuture::new(async move {
            let connector = Self::builder()?.build()?;
            connector.connect(domain, stream).await
        })
    }
/// Connect using default settings.
///
/// Shortcut.
Connect using default settings.
Shortcut.
Connect using default settings . Shortcut .
fn connect_default<'a, S>(
        domain: &'a str,
        stream: S,
    ) -> BoxFuture<'a, anyhow::Result<TlsStream>>
    where
        S: AsyncSocket,
    {
        BoxFuture::new(async move {
            let connector = Self::builder()?.build()?;
            connector.connect(domain, stream).await
        })
    }
fn connect_default < ' a , S > ( domain : & ' a str , stream : S , ) -> BoxFuture < ' a , anyhow :: Result < TlsStream > > where S : AsyncSocket , { BoxFuture :: new ( async move { let connector = Self :: builder ( ) ? . build ( ) ? ; connector . connect ( domain , stream ) . await } ) }
Connect using default settings.
Connect using default settings .
domain
&'a str
stream
S
domain
&'a str
stream
S