pub trait AsExtension: AssociatedOid + Encode {
    // Required method
    fn critical(&self, subject: &Name, extensions: &[Extension]) -> bool;

    // Provided method
    fn to_extension(
        &self,
        subject: &Name,
        extensions: &[Extension]
    ) -> Result<Extension, Error> { ... }
}
Expand description

Trait to be implemented by extensions to allow them to be formated as x509 v3 extensions by builder.

Required Methods§

source

fn critical(&self, subject: &Name, extensions: &[Extension]) -> bool

Should the extension be marked critical

Provided Methods§

source

fn to_extension( &self, subject: &Name, extensions: &[Extension] ) -> Result<Extension, Error>

Returns the Extension with the content encoded.

Object Safety§

This trait is not object safe.

Implementors§