pub struct NamespacedBackend { /* private fields */ }Expand description
A view of another backend restricted to a single namespace.
Implementations§
Source§impl NamespacedBackend
impl NamespacedBackend
Sourcepub fn new(
backend: &'static dyn Backend,
namespace: &'static str,
) -> NamespacedBackend
pub fn new( backend: &'static dyn Backend, namespace: &'static str, ) -> NamespacedBackend
Create a backend that exposes only keys below namespace.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NamespacedBackend
impl !UnwindSafe for NamespacedBackend
impl Freeze for NamespacedBackend
impl Send for NamespacedBackend
impl Sync for NamespacedBackend
impl Unpin for NamespacedBackend
impl UnsafeUnpin for NamespacedBackend
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