rocket::mtls::oid::asn1_rs

Trait AsTaggedImplicit

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

Helper trait for creating tagged IMPLICIT values

§Examples

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

// create a `[1] IMPLICIT INTEGER` value, not constructed
let tagged: TaggedParser<_, _, Error> = 4u32.implicit(Class::ContextSpecific, false, 1);

Provided Methods§

Source

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, 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> AsTaggedImplicit<'a, E> for T
where T: 'a,