Skip to main content

TransactedServerKeyQueries

Trait TransactedServerKeyQueries 

Source
pub trait TransactedServerKeyQueries: ServerKeyQueries {
    // Provided methods
    async fn rotate_server_keys(&mut self) -> Result<(), ServerKeyError> { ... }
    async fn generate_key_if_not_exists(&mut self) -> Result<(), ServerKeyError> { ... }
}
Expand description

Server keys related queries that must operate within a transaction

Provided Methods§

Source

async fn rotate_server_keys(&mut self) -> Result<(), ServerKeyError>

Deletes all signing keys from the database, and generates a new one

Source

async fn generate_key_if_not_exists(&mut self) -> Result<(), ServerKeyError>

If there is no signing key in the database, generate one and put it there.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'c> TransactedServerKeyQueries for TransactedDb<'c>

Implementors§