Skip to main content

SecretStorage

Trait SecretStorage 

Source
pub trait SecretStorage:
    Send
    + Sync
    + Debug {
    // Required method
    fn read<'a>(&'a self, path: &'a str) -> ReadFuture<'a>;
}
Expand description

A kind of secret storage (Vault, the db storage, values in memory).

Required Methods§

Source

fn read<'a>(&'a self, path: &'a str) -> ReadFuture<'a>

The whole secret at path.

§Errors

A SecretError when it can’t be read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§