pub trait Encode: Sealed {
// Required methods
fn as_pkcs1(&self) -> Result<Vec<u8>, Error>;
fn as_pkcs8(&self) -> Result<Vec<u8>, Error>;
}Expand description
Trait for encoding the keys
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".