pub struct KeyValue<Effect, Event> { /* private fields */ }
Implementations§
Source§impl<Effect, Event> KeyValue<Effect, Event>
impl<Effect, Event> KeyValue<Effect, Event>
pub fn get( key: impl Into<String>, ) -> RequestBuilder<Effect, Event, impl Future<Output = Result<Option<Vec<u8>>, KeyValueError>>>
pub fn set( key: impl Into<String>, value: Vec<u8>, ) -> RequestBuilder<Effect, Event, impl Future<Output = Result<Option<Vec<u8>>, KeyValueError>>>
pub fn delete( key: impl Into<String>, ) -> RequestBuilder<Effect, Event, impl Future<Output = Result<Option<Vec<u8>>, KeyValueError>>>
pub fn exists( key: impl Into<String>, ) -> RequestBuilder<Effect, Event, impl Future<Output = Result<bool, KeyValueError>>>
pub fn list_keys( prefix: impl Into<String>, cursor: u64, ) -> RequestBuilder<Effect, Event, impl Future<Output = Result<(Vec<String>, u64), KeyValueError>>>
Auto Trait Implementations§
impl<Effect, Event> Freeze for KeyValue<Effect, Event>
impl<Effect, Event> RefUnwindSafe for KeyValue<Effect, Event>where
Effect: RefUnwindSafe,
Event: RefUnwindSafe,
impl<Effect, Event> Send for KeyValue<Effect, Event>
impl<Effect, Event> Sync for KeyValue<Effect, Event>
impl<Effect, Event> Unpin for KeyValue<Effect, Event>
impl<Effect, Event> UnwindSafe for KeyValue<Effect, Event>where
Effect: UnwindSafe,
Event: UnwindSafe,
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