pub async fn abort<R>(mut self) -> Result<TransactionAttemptResult<R>> {
        debug!(id = &self.id[..], "transaction will be aborted");
        match self
            .pooled_session
            .abort_transaction(&self.pooled_session.session_token())
            .await
        {
            Ok(r) => self.accumulated_execution_stats.accumulate(&r),
            Err(e) => {
                debug!(
                    error = %e,
                    id = &self.id[..],
                    "ignoring failure to abort tx"
                );
                self.pooled_session.notify_invalid();
            }
        };

        Ok(TransactionAttemptResult::Aborted)
    }
// Always returns `Ok` even though the signature says `Result`. This is to
// keep the type consistent with `commit`.
Always returns `Ok` even though the signature says `Result`. This is to
keep the type consistent with `commit`.
Always returns ` Ok ` even though the signature says ` Result ` . This is to keep the type consistent with ` commit ` .
pub async fn abort<R>(mut self) -> Result<TransactionAttemptResult<R>> {
        debug!(id = &self.id[..], "transaction will be aborted");
        match self
            .pooled_session
            .abort_transaction(&self.pooled_session.session_token())
            .await
        {
            Ok(r) => self.accumulated_execution_stats.accumulate(&r),
            Err(e) => {
                debug!(
                    error = %e,
                    id = &self.id[..],
                    "ignoring failure to abort tx"
                );
                self.pooled_session.notify_invalid();
            }
        };
        Ok(TransactionAttemptResult::Aborted)
    }
pub async fn abort < R > ( mut self ) -> Result < TransactionAttemptResult < R > > { debug ! ( id self id [ ] " " ) ; match self . pooled_session . abort_transaction ( & self . pooled_session . session_token ( ) ) . await { Ok ( r ) => self . accumulated_execution_stats . accumulate ( & r ) , Err ( e ) => { debug ! ( error e id self id [ ] " " ) ; self . pooled_session . notify_invalid ( ) ; } } ; Ok ( TransactionAttemptResult :: Aborted ) }
Always returns `Ok` even though the signature says `Result`.
Always returns ` Ok ` even though the signature says ` Result ` .
mut self
mut self