rocket::mtls::oid::asn1_rs

Trait AsTaggedExplicit

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

Helper trait for creating tagged EXPLICIT values

§Examples

use asn1_rs::{AsTaggedExplicit, Class, Error, TaggedParser};

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

Provided Methods§

Source

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

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.

Implementors§

Source§

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