pub trait EncodeEncrypted {
// Required method
fn encode<B: MutableData>(
&self,
buf: B,
secret_key: Option<&SecretKey>,
) -> Result<usize, Error>;
}
Expand description
Internal trait to support encoding of optionally encrypted objects in a generic buffer
Required Methods§
fn encode<B: MutableData>( &self, buf: B, secret_key: Option<&SecretKey>, ) -> Result<usize, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.