pub struct JournalStore { /* private fields */ }Expand description
The reference anchored SecurityJournalV2 store. It persists the
canonical snapshot bytes and an anchored head, and advances both under one
lock by compare-and-swap. TEST/REFERENCE ONLY: an in-process anchor is not
an independent, rollback-resistant head.
Implementations§
Source§impl JournalStore
impl JournalStore
Trait Implementations§
Source§impl Debug for JournalStore
impl Debug for JournalStore
Source§impl SecurityJournalStoreV2 for JournalStore
impl SecurityJournalStoreV2 for JournalStore
Source§fn load(
&self,
_ctx: &V2Context,
) -> V2Result<(SecurityJournalV2, SecurityJournalHeadV2)>
fn load( &self, _ctx: &V2Context, ) -> V2Result<(SecurityJournalV2, SecurityJournalHeadV2)>
Imports the stored snapshot against the anchored head.
fn compare_and_swap( &self, _ctx: &V2Context, expected: &SecurityJournalHeadV2, next: &SecurityJournalV2, ) -> Result<(), SecurityJournalStoreErrorV2>
Auto Trait Implementations§
impl !Freeze for JournalStore
impl Forget for JournalStore
impl RefUnwindSafe for JournalStore
impl Send for JournalStore
impl Sync for JournalStore
impl Unpin for JournalStore
impl UnsafeUnpin for JournalStore
impl UnwindSafe for JournalStore
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