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