Skip to main content

SeedCredentials

Trait SeedCredentials 

Source
pub trait SeedCredentials: Send + Sync {
    // Required methods
    fn get(&self, node_id: &str) -> Result<SecretString, RuntimeError>;
    fn put(
        &self,
        node_id: &str,
        token: SecretString,
    ) -> Result<(), RuntimeError>;
}
Expand description

Where per-Seed tokens live.

Required Methods§

Source

fn get(&self, node_id: &str) -> Result<SecretString, RuntimeError>

Token for node_id.

Source

fn put(&self, node_id: &str, token: SecretString) -> Result<(), RuntimeError>

Store a token for node_id.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§