pub async fn begin_transaction(&self) -> bool {
        debug!("BEGIN begin transaction");
        let mut guard = self.state.write().await;
        let out = if (*guard).active {
            false
        } else {
            (*guard).active = true;
            true
        };
        debug!("END begin transaction");
        out
    }
/// Start a transaction in the storage layer
Start a transaction in the storage layer
Start a transaction in the storage layer
pub async fn begin_transaction(&self) -> bool {
        debug!("BEGIN begin transaction");
        let mut guard = self.state.write().await;
        let out = if (*guard).active {
            false
        } else {
            (*guard).active = true;
            true
        };
        debug!("END begin transaction");
        out
    }
pub async fn begin_transaction ( & self ) -> bool { debug ! ( " " ) ; let mut guard = self . state . write ( ) . await ; let out = if ( * guard ) . active { false } else { ( * guard ) . active = true ; true } ; debug ! ( " " ) ; out }
Start a transaction in the storage layer
Start a transaction in the storage layer
&self
&self