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> Freeze for ClusterTransaction<T, S>
impl<T, S> RefUnwindSafe for ClusterTransaction<T, S>where
T: RefUnwindSafe,
impl<T, S> Send for ClusterTransaction<T, S>where
S: Send,
impl<T, S> Sync for ClusterTransaction<T, S>where
S: Send,
impl<T, S> Unpin for ClusterTransaction<T, S>where
T: Unpin,
impl<T, S> UnsafeUnpin for ClusterTransaction<T, S>
impl<T, S> UnwindSafe for ClusterTransaction<T, S>where
T: RefUnwindSafe + 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