Skip to main content

PgpFactoryExt

Trait PgpFactoryExt 

Source
pub trait PgpFactoryExt {
    // Required method
    fn pgp(&self, label: impl AsRef<str>, spec: PgpSpec) -> PgpKeyPair;
}
Expand description

Extension trait to hang OpenPGP helpers off the core Factory.

Required Methods§

Source

fn pgp(&self, label: impl AsRef<str>, spec: PgpSpec) -> PgpKeyPair

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.

Implementations on Foreign Types§

Source§

impl PgpFactoryExt for Factory

Source§

fn pgp(&self, label: impl AsRef<str>, spec: PgpSpec) -> PgpKeyPair

Implementors§