Struct ax_banyan::StreamTransaction
source · pub struct StreamTransaction<'a, T: TreeTypes, V> { /* private fields */ }
Implementations§
Methods from Deref<Target = StreamBuilder<T, V>>§
pub fn snapshot(&self) -> Tree<T, V>
pub fn link(&self) -> Option<T::Link>
pub fn as_index_ref(&self) -> Option<&Index<T>>
pub fn level(&self) -> i32
sourcepub fn transaction(&mut self) -> StreamTransaction<'_, T, V>
pub fn transaction(&mut self) -> StreamTransaction<'_, T, V>
Modify a StreamBuilder and roll back the changes if the operation was not successful
Note that consumed offets are not rolled back to make sure we don’t reuse offsets.
Trait Implementations§
source§impl<'a, T: TreeTypes, V> DerefMut for StreamTransaction<'a, T, V>
impl<'a, T: TreeTypes, V> DerefMut for StreamTransaction<'a, T, V>
source§impl<'a, T: TreeTypes, V> Drop for StreamTransaction<'a, T, V>
impl<'a, T: TreeTypes, V> Drop for StreamTransaction<'a, T, V>
Auto Trait Implementations§
impl<'a, T, V> RefUnwindSafe for StreamTransaction<'a, T, V>where
V: RefUnwindSafe,
<T as TreeTypes>::KeySeq: RefUnwindSafe,
<T as TreeTypes>::Link: RefUnwindSafe,
<T as TreeTypes>::SummarySeq: RefUnwindSafe,
impl<'a, T, V> Send for StreamTransaction<'a, T, V>where
V: Send,
impl<'a, T, V> Sync for StreamTransaction<'a, T, V>where
V: Sync,
impl<'a, T, V> Unpin for StreamTransaction<'a, T, V>
impl<'a, T, V> !UnwindSafe for StreamTransaction<'a, T, V>
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