pub trait PushConfigCipher:
Send
+ Sync
+ 'static {
// Required methods
fn seal<'a>(
&'a self,
plaintext: Vec<u8>,
context: &'a [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, A2aError>> + Send + 'a>>;
fn open<'a>(
&'a self,
sealed: Vec<u8>,
context: &'a [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, A2aError>> + Send + 'a>>;
}Available on crate features
postgres or sqlite only.Expand description
Encrypts push notification configs for an SQL store; see the module docs.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".