Skip to main content

KeyUsageSliceHelper

Trait KeyUsageSliceHelper 

Source
pub(crate) trait KeyUsageSliceHelper {
    // Required methods
    fn usage_intersection(&self, other: &[KeyUsage]) -> Vec<KeyUsage>;
    fn normalized_value(&self) -> Vec<KeyUsage>;
    fn ensure_only_contain_entries_from(
        &self,
        allowed: &[KeyUsage],
    ) -> ErrorResult;
}
Expand description

The trait providing helper functions for &[KeyUsage]

Required Methods§

Source

fn usage_intersection(&self, other: &[KeyUsage]) -> Vec<KeyUsage>

Source

fn normalized_value(&self) -> Vec<KeyUsage>

Source

fn ensure_only_contain_entries_from(&self, allowed: &[KeyUsage]) -> ErrorResult

Ensure that the key usage list only contains entries which are in allowed. If the key usage list contains an entry which is not in allowed, then throw a SyntaxError. Note that, if allowed is set to empty, it throws a SyntaxError when the key usage list is not empty.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl KeyUsageSliceHelper for [KeyUsage]

Implementors§