Struct dittolive_ditto::store::batch::ScopedStore
source · pub struct ScopedStore<'batch> { /* private fields */ }
Implementations§
source§impl<'batch> ScopedStore<'batch>
impl<'batch> ScopedStore<'batch>
sourcepub fn commit_changes(self: ScopedStore<'batch>) -> Action<'batch>
pub fn commit_changes(self: ScopedStore<'batch>) -> Action<'batch>
Commit changes done in this ScopedStore.
sourcepub fn revert_changes(self: ScopedStore<'batch>) -> Action<'batch>
pub fn revert_changes(self: ScopedStore<'batch>) -> Action<'batch>
Revert changes done in this ScopedStore.
sourcepub fn collection<'coll>(
self: &'coll mut ScopedStore<'batch>,
collection_name: &str
) -> ScopedCollection<'coll, 'batch>
pub fn collection<'coll>( self: &'coll mut ScopedStore<'batch>, collection_name: &str ) -> ScopedCollection<'coll, 'batch>
Return an handle to change a single Collection
.
Auto Trait Implementations§
impl<'batch> !RefUnwindSafe for ScopedStore<'batch>
impl<'batch> !Send for ScopedStore<'batch>
impl<'batch> !Sync for ScopedStore<'batch>
impl<'batch> Unpin for ScopedStore<'batch>
impl<'batch> !UnwindSafe for ScopedStore<'batch>
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