Mark transaction as failed with error message
(&mut self, error: String)
| 216 | |
| 217 | /// Mark transaction as failed with error message |
| 218 | pub fn fail(&mut self, error: String) { |
| 219 | self.status = TransactionStatus::Failed(error); |
| 220 | self.end_time = Some(SystemTime::now()); |
| 221 | } |
| 222 | |
| 223 | /// Check if transaction is active |
| 224 | pub fn is_active(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected