pub struct FileStore { /* private fields */ }Expand description
Debug prints the root only: a store handle appears in test assertions and
in error context, and the lock’s file descriptor is noise there.
Implementations§
Trait Implementations§
Source§impl Store for FileStore
impl Store for FileStore
Source§fn put(
&self,
key: &str,
seq: u64,
envelope: &Value,
) -> Result<PutOutcome, StoreError>
fn put( &self, key: &str, seq: u64, envelope: &Value, ) -> Result<PutOutcome, StoreError>
Compare-and-set write:
seq must exceed the stored one.Source§fn get(&self, key: &str, _seq: Option<u64>) -> Result<Option<Value>, StoreError>
fn get(&self, key: &str, _seq: Option<u64>) -> Result<Option<Value>, StoreError>
The latest record (or the pinned
seq if the store keeps history).Source§fn list(&self, prefix: &str) -> Result<Vec<KeySeq>, StoreError>
fn list(&self, prefix: &str) -> Result<Vec<KeySeq>, StoreError>
Keys under
prefix (optional; Unsupported is a legal answer).Auto Trait Implementations§
impl !Freeze for FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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