pub struct HttpStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Store for HttpStore
impl Store for HttpStore
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 HttpStore
impl RefUnwindSafe for HttpStore
impl Send for HttpStore
impl Sync for HttpStore
impl Unpin for HttpStore
impl UnsafeUnpin for HttpStore
impl UnwindSafe for HttpStore
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