pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn new() -> Self
pub fn with_in_memory(self, client: Arc<dyn InMemoryClient>) -> Self
pub fn with_kvs(self, client: Arc<dyn KVSClient>) -> Self
pub fn with_http(self, client: Arc<dyn HttpClient>) -> Self
pub fn with_file(self, client: Arc<dyn FileClient>) -> Self
pub fn get(&self, store_config: &HashMap<String, Value>) -> Option<Value>
pub fn set( &self, store_config: &HashMap<String, Value>, value: Value, ttl: Option<u64>, ) -> Result<bool, StoreError>
pub fn delete( &self, store_config: &HashMap<String, Value>, ) -> Result<bool, StoreError>
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