pub struct Store { /* private fields */ }Expand description
Owns one transcript and issues independent minimal-permission capabilities.
Store itself has no read or mutation methods. Give consumers only the
handle they require; none of the handles can recover or mint another facet.
use reef_core::transcript::store;
let store = store::Store::new();
let reader = store.reader();
assert!(reader.items().unwrap().is_empty());Implementations§
Source§impl Store
impl Store
Sourcepub fn from_items(items: Vec<Item>) -> Self
pub fn from_items(items: Vec<Item>) -> Self
Creates a new version-zero epoch owning items.
Sourcepub fn snapshot_reader(&self) -> SnapshotReader
pub fn snapshot_reader(&self) -> SnapshotReader
Issues an atomic versioned-snapshot capability.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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