pub struct ClusterTransaction<T: LinkReference, S: AtomicJournalStore> { /* private fields */ }Implementations§
Source§impl<T: LinkReference, S: AtomicJournalStore> ClusterTransaction<T, S>
impl<T: LinkReference, S: AtomicJournalStore> ClusterTransaction<T, S>
pub fn shard(&mut self, key: &str) -> Result<&mut ShardSession<T>, LinkError>
Sourcepub fn commit(&mut self) -> Result<(), LinkError>
pub fn commit(&mut self) -> Result<(), LinkError>
Every attempt ends this transaction. An error after CAS may be unknown; use a new transaction to discover the authoritative state.
pub fn rollback(&mut self)
Trait Implementations§
Source§impl<T: LinkReference, S: AtomicJournalStore> Drop for ClusterTransaction<T, S>
impl<T: LinkReference, S: AtomicJournalStore> Drop for ClusterTransaction<T, S>
Auto Trait Implementations§
impl<T, S> Forget for ClusterTransaction<T, S>
impl<T, S> Freeze for ClusterTransaction<T, S>where
*const ArcInner<Mutex<S>> is !null: Freeze,
PhantomData<ArcInner<Mutex<S>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<JournalVersion>: Freeze,
PhantomData<ShardSession<T>>: Freeze,
impl<T, S> Move for ClusterTransaction<T, S>
impl<T, S> RefUnwindSafe for ClusterTransaction<T, S>where
Atomic<usize>: RefUnwindSafe,
Mutex<S>: RefUnwindSafe,
Mutex<State<T, MemoryLog>>: RefUnwindSafe,
T: RefUnwindSafe,
OnceLock<BTreeMap<T, Row<T>>>: RefUnwindSafe,
Mutex<ReadSet<T>>: RefUnwindSafe,
impl<T, S> Send for ClusterTransaction<T, S>
impl<T, S> Sync for ClusterTransaction<T, S>
impl<T, S> Unpin for ClusterTransaction<T, S>where
T: Unpin,
Arc<Mutex<S>>: Unpin,
*const u8 is !null: Unpin,
Arc<Mutex<State<T, MemoryLog>>>: Unpin,
Arc<Rows<T>>: Unpin,
*const LeafNode<T, Option<Row<T>>> is !null: Unpin,
Box<(T, Option<Row<T>>)>: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
*const LeafNode<T, SetValZST> is !null: Unpin,
Box<(T, SetValZST)>: Unpin,
Arc<()>: Unpin,
impl<T, S> UnsafeUnpin for ClusterTransaction<T, S>where
*const ArcInner<Mutex<S>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<S>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<JournalVersion>: UnsafeUnpin,
PhantomData<ShardSession<T>>: UnsafeUnpin,
impl<T, S> UnwindSafe for ClusterTransaction<T, S>where
Arc<Mutex<S>>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<Mutex<State<T, MemoryLog>>>: UnwindSafe,
Arc<Rows<T>>: UnwindSafe,
BTreeMap<T, Option<Row<T>>>: UnwindSafe,
T: UnwindSafe,
Mutex<ReadSet<T>>: UnwindSafe,
Arc<()>: UnwindSafe,
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