pub struct Namespace { /* private fields */ }Expand description
Scoped handle — prefixes all keys; clear_prefix stays inside.
Trait Implementations§
Source§impl KvStore for Namespace
impl KvStore for Namespace
fn get<'a>(&'a self, key: &'a str) -> BoxFuture<'a, Option<Bytes>>
fn set<'a>( &'a self, key: &'a str, val: Bytes, ttl: Option<Duration>, ) -> BoxFuture<'a, ()>
fn remove<'a>(&'a self, key: &'a str) -> BoxFuture<'a, ()>
Auto Trait Implementations§
impl !RefUnwindSafe for Namespace
impl !UnwindSafe for Namespace
impl Freeze for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
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