Trait rocket::mtls::oid::asn1_rs::AsTaggedExplicit

source ·
pub trait AsTaggedExplicit<'a>: Sized {
    // Provided method
    fn explicit(
        self,
        class: Class,
        tag: u32,
    ) -> TaggedParser<'a, Explicit, Self> { ... }
}
Available on crate feature mtls only.
Expand description

Helper trait for creating tagged EXPLICIT values

§Examples

use asn1_rs::{AsTaggedExplicit, Class};

// create a `[1] EXPLICIT INTEGER` value
let tagged = 4u32.explicit(Class::ContextSpecific, 1);

Provided Methods§

source

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T> AsTaggedExplicit<'a> for T
where T: 'a,