rocket::mtls::oid::asn1_rs

Trait Choice

Source
pub trait Choice {
    // Required method
    fn can_decode(tag: Tag) -> bool;
}
Available on crate feature mtls only.

Required Methods§

Source

fn can_decode(tag: Tag) -> bool

Is the provided Tag decodable as a variant of this CHOICE?

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<T> Choice for T
where T: Tagged,

This blanket impl allows any Tagged type to function as a Choice with a single alternative.