pub struct NamespacedKv { /* private fields */ }Implementations§
Source§impl NamespacedKv
impl NamespacedKv
pub fn from_handle(kv: KvHandle) -> Self
pub fn clone_with_additional_prefix(&self, additional: &[u8]) -> Self
pub fn put_bytes(&self, key: &[u8], value: &[u8]) -> Result<(), Error>
pub fn put_secret(&self, key: &[u8], value: &[u8])
pub fn get_bytes(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error>
pub fn auth_service(&self) -> Arc<GatewayAuthService> ⓘ
pub fn list_by_prefix( &self, prefix: &[u8], ) -> Result<Vec<(Vec<u8>, Vec<u8>)>, Error>
Trait Implementations§
Source§impl Clone for NamespacedKv
impl Clone for NamespacedKv
Source§fn clone(&self) -> NamespacedKv
fn clone(&self) -> NamespacedKv
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NamespacedKv
impl !RefUnwindSafe for NamespacedKv
impl Send for NamespacedKv
impl Sync for NamespacedKv
impl Unpin for NamespacedKv
impl !UnwindSafe for NamespacedKv
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