Skip to main content

AlgorithmIdentifier

Trait AlgorithmIdentifier 

Source
pub trait AlgorithmIdentifier {
    type AlgorithmOid: Oid;

    // Required methods
    fn algorithm(&self) -> Self::AlgorithmOid;
    fn parameters<W: Write>(&self, w: WriteContext<W>) -> GenResult<W>;
}
Expand description

A trait for objects which represent ASN.1 AlgorithmIdentifiers.

Required Associated Types§

Required Methods§

Source

fn algorithm(&self) -> Self::AlgorithmOid

Returns the object identifier for this AlgorithmIdentifier.

Source

fn parameters<W: Write>(&self, w: WriteContext<W>) -> GenResult<W>

Writes the parameters for this AlgorithmIdentifier, if any.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§