pub struct Barrier<B: StorageBackend> { /* private fields */ }Expand description
Wraps a raw StorageBackend, transparently AEAD-encrypting/decrypting
values. Paths are left in plaintext (same as Vault’s own barrier).
Implementations§
Trait Implementations§
Source§impl<B: StorageBackend> StorageBackend for Barrier<B>
impl<B: StorageBackend> StorageBackend for Barrier<B>
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = StorageResult<Option<StorageEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
entry: StorageEntry,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = StorageResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<B> !RefUnwindSafe for Barrier<B>
impl<B> !UnwindSafe for Barrier<B>
impl<B> Freeze for Barrier<B>where
B: Freeze,
impl<B> Send for Barrier<B>
impl<B> Sync for Barrier<B>
impl<B> Unpin for Barrier<B>where
B: Unpin,
impl<B> UnsafeUnpin for Barrier<B>where
B: UnsafeUnpin,
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