pub struct TxnData<'a> {
pub compares: Vec<Compare<'a>>,
pub success: Vec<Operation<'a>>,
pub failure: Vec<Operation<'a>>,
}Expand description
A transactional data structure.
Fields§
§compares: Vec<Compare<'a>>A list of operations to compare against the current state.
success: Vec<Operation<'a>>A list of operations to apply if the compare operations pass.
failure: Vec<Operation<'a>>A list of operations to apply if the compare operations fail.
Trait Implementations§
impl<'a> StructuralPartialEq for TxnData<'a>
Auto Trait Implementations§
impl<'a> Freeze for TxnData<'a>
impl<'a> RefUnwindSafe for TxnData<'a>
impl<'a> Send for TxnData<'a>
impl<'a> Sync for TxnData<'a>
impl<'a> Unpin for TxnData<'a>
impl<'a> UnwindSafe for TxnData<'a>
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