pub(crate) async fn transaction_support_status(&self) -> Result<TransactionSupportStatus> {
        let initial_status = self.inner.topology.transaction_support_status().await;

        // Need to guarantee that we're connected to at least one server that can determine if
        // sessions are supported or not.
        match initial_status {
            TransactionSupportStatus::Undetermined => {
                self.select_data_bearing_server().await?;
                Ok(self.inner.topology.transaction_support_status().await)
            }
            _ => Ok(initial_status),
        }
    }
/// Gets whether the topology supports transactions. If it has yet to be determined if the
/// topology supports transactions, this method will perform a server selection that will force
/// that determination to be made.
Gets whether the topology supports transactions. If it has yet to be determined if the
topology supports transactions, this method will perform a server selection that will force
that determination to be made.
Gets whether the topology supports transactions . If it has yet to be determined if the topology supports transactions this method will perform a server selection that will force that determination to be made .
pub(crate) async fn transaction_support_status(&self) -> Result<TransactionSupportStatus> {
        let initial_status = self.inner.topology.transaction_support_status().await;
        // Need to guarantee that we're connected to at least one server that can determine if
        // sessions are supported or not.
        match initial_status {
            TransactionSupportStatus::Undetermined => {
                self.select_data_bearing_server().await?;
                Ok(self.inner.topology.transaction_support_status().await)
            }
            _ => Ok(initial_status),
        }
    }
pub ( crate ) async fn transaction_support_status ( & self ) -> Result < TransactionSupportStatus > { let initial_status = self . inner . topology . transaction_support_status ( ) . await ; // Need to guarantee that we're connected to at least one server that can determine if // sessions are supported or not. match initial_status { TransactionSupportStatus :: Undetermined => { self . select_data_bearing_server ( ) . await ? ; Ok ( self . inner . topology . transaction_support_status ( ) . await ) } _ => Ok ( initial_status ) , } }
Gets whether the topology supports transactions.
Gets whether the topology supports transactions .
&self
&self