pub struct Transaction<T> {
pub insertion_id: u64,
pub transaction: Arc<T>,
}Expand description
Internal representation of transaction.
Includes unique insertion id that can be used for scoring explicitly, but internally is used to resolve conflicts in case of equal scoring (newer transactions are preferred).
Fields§
§insertion_id: u64Sequential id of the transaction
transaction: Arc<T>Shared transaction
Trait Implementations§
Source§impl<T> Clone for Transaction<T>
impl<T> Clone for Transaction<T>
Source§impl<T: Debug> Debug for Transaction<T>
impl<T: Debug> Debug for Transaction<T>
Auto Trait Implementations§
impl<T> Freeze for Transaction<T>
impl<T> RefUnwindSafe for Transaction<T>where
T: RefUnwindSafe,
impl<T> Send for Transaction<T>
impl<T> Sync for Transaction<T>
impl<T> Unpin for Transaction<T>
impl<T> UnwindSafe for Transaction<T>where
T: RefUnwindSafe,
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