pub struct KvHandle { /* private fields */ }Implementations§
Source§impl KvHandle
impl KvHandle
pub fn data_dir(&self) -> &Path
pub fn put_bytes(&self, key: &[u8], value: &[u8]) -> Result<(), KvError>
pub fn put_secret(&self, key: &[u8], value: &[u8])
pub fn get_bytes(&self, key: &[u8]) -> Result<Option<Vec<u8>>, KvError>
pub fn auth( &self, ) -> Arc<AuthService<Arc<SingleNodeEngine>, Argon2SecretHasher, AesGcmEncryptor>>
pub fn get_prefix( &self, prefix: &[u8], ) -> Result<Vec<(Vec<u8>, Vec<u8>)>, KvError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KvHandle
impl !RefUnwindSafe for KvHandle
impl Send for KvHandle
impl Sync for KvHandle
impl Unpin for KvHandle
impl !UnwindSafe for KvHandle
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