Skip to main content

Reseal

Trait Reseal 

Source
pub trait Reseal: Send + Sync {
    // Required methods
    fn reseal_under(&self, keys: SealKeys) -> Result<usize>;
    fn sealed_under(&self) -> Option<SealKeyId>;
}
Expand description

Something whose files can be resealed under new keys while it is in use.

Required Methods§

Source

fn reseal_under(&self, keys: SealKeys) -> Result<usize>

Seals new writes under keys’ current key and rewrites every file that is plaintext or under a retired key; returns how many were.

Source

fn sealed_under(&self) -> Option<SealKeyId>

The key new files are sealed under; None while it writes plaintext.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Reseal for RwLock<RawIndex>

Source§

impl Reseal for TranscriptArchive

Implementors§