[][src]Struct libra_secure_storage::NamespacedStorage

pub struct NamespacedStorage { /* fields omitted */ }

This provides a light wrapper around KV storages to support a namespace. That namespace is effectively prefixing all keys with then namespace value and "/" so a namespace of foo and a key of bar becomes "foo/bar". Without a namespace, the key would just be "bar". This matches how this library implements namespaces for Vault.

Implementations

impl NamespacedStorage[src]

pub fn new(storage: Storage, namespace: String) -> Self[src]

Trait Implementations

impl CryptoKVStorage for NamespacedStorage[src]

impl From<NamespacedStorage> for Storage[src]

impl KVStorage for NamespacedStorage[src]

fn reset_and_clear(&mut self) -> Result<(), Error>[src]

Note: This is not a namespace function

impl TryInto<NamespacedStorage> for Storage[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for NamespacedStorage

impl Send for NamespacedStorage

impl Sync for NamespacedStorage

impl Unpin for NamespacedStorage

impl UnwindSafe for NamespacedStorage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,