Skip to main content

EncryptionCodec

Trait EncryptionCodec 

Source
pub trait EncryptionCodec: Sealed {
    const FORMAT: Encryption;
}
Expand description

Sealed encryption implementation used for static dispatch. Applications normally pass Identity or, with feature aes-gcm, Aes256Gcm.

Required Associated Constants§

Source

const FORMAT: Encryption

Metadata format implemented by this codec.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl EncryptionCodec for Aes256Gcm

Available on crate feature aes-gcm only.
Source§

const FORMAT: Encryption = Encryption::Aes256Gcm

Source§

impl EncryptionCodec for Identity

Source§

const FORMAT: Encryption = Encryption::None