pub struct SingleCodecKeyRing { /* private fields */ }Expand description
A KeyRing that seals everything — catalog and every collection — with one
shared codec.
This is the pre-envelope behaviour: PlainCodec when encryption-at-rest is
disabled, or a single AEAD codec when a key is configured without the
per-collection envelope. It holds no per-collection keys, so provision and
shred are no-ops — a dropped collection is erased only by reclaiming its
files.
Implementations§
Trait Implementations§
Source§impl KeyRing for SingleCodecKeyRing
impl KeyRing for SingleCodecKeyRing
Source§fn catalog_codec(&self) -> &dyn PageCodec
fn catalog_codec(&self) -> &dyn PageCodec
The codec for engine-wide structures: the manifest and the write-ahead
log.
Source§fn collection_codec(
&self,
_collection: CollectionId,
) -> Result<Box<dyn PageCodec>>
fn collection_codec( &self, _collection: CollectionId, ) -> Result<Box<dyn PageCodec>>
The codec for one collection’s segments and index artifacts. Read more
Source§fn provision_collection(&self, _collection: CollectionId) -> Result<()>
fn provision_collection(&self, _collection: CollectionId) -> Result<()>
Provision key material for a new collection. Idempotent, and a no-op for
key-rings without per-collection keys. Read more
Source§fn shred_collection(&self, _collection: CollectionId) -> Result<()>
fn shred_collection(&self, _collection: CollectionId) -> Result<()>
Crypto-shred a collection: destroy its key material so its sealed data can
never be decrypted again. A no-op for key-rings without per-collection
keys, where reclaiming the files is the only erasure. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SingleCodecKeyRing
impl !UnwindSafe for SingleCodecKeyRing
impl Freeze for SingleCodecKeyRing
impl Send for SingleCodecKeyRing
impl Sync for SingleCodecKeyRing
impl Unpin for SingleCodecKeyRing
impl UnsafeUnpin for SingleCodecKeyRing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more