pub struct TerminalTxn {
pub state: TxnState,
pub epoch: u64,
pub owner: OwnerId,
pub path: Vec<String>,
pub transition: Transition,
pub why: String,
pub withdrawn_for: Option<TxnId>,
pub prepared_again_from: Option<TxnId>,
}Expand description
What remains of a terminal transaction: enough to refuse stale epochs and
to show the outcome. Bounded to the most recent TERMINAL_KEEP.
Fields§
§state: TxnState§epoch: u64§owner: OwnerId§path: Vec<String>§transition: Transition§why: StringThe most recent reason journaled with a step (why it reverted, …).
withdrawn_for: Option<TxnId>§12f: the rollback it was withdrawn for (its last Advance’s).
prepared_again_from: Option<TxnId>§12f: the withdrawn transaction it prepared again.
Trait Implementations§
Source§impl Clone for TerminalTxn
impl Clone for TerminalTxn
Source§fn clone(&self) -> TerminalTxn
fn clone(&self) -> TerminalTxn
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalTxn
impl Debug for TerminalTxn
Source§impl<'de> Deserialize<'de> for TerminalTxn
impl<'de> Deserialize<'de> for TerminalTxn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TerminalTxn
impl PartialEq for TerminalTxn
Source§impl Serialize for TerminalTxn
impl Serialize for TerminalTxn
impl Eq for TerminalTxn
impl StructuralPartialEq for TerminalTxn
Auto Trait Implementations§
impl Freeze for TerminalTxn
impl RefUnwindSafe for TerminalTxn
impl Send for TerminalTxn
impl Sync for TerminalTxn
impl Unpin for TerminalTxn
impl UnsafeUnpin for TerminalTxn
impl UnwindSafe for TerminalTxn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more