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§
Sourcefn get(&self, node_id: &str) -> Result<SecretString, RuntimeError>
fn get(&self, node_id: &str) -> Result<SecretString, RuntimeError>
Token for node_id.
Sourcefn put(&self, node_id: &str, token: SecretString) -> Result<(), RuntimeError>
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".