pub enum TrustAnchorChoice<P: Profile = Rfc5280> {
Certificate(CertificateInner<P>),
TbsCertificate(TbsCertificateInner<P>),
TaInfo(TrustAnchorInfo<P>),
}Expand description
TrustAnchorInfo allows for the representation of a single trust anchor. Defined in RFC 5914 Section 3.
TrustAnchorChoice ::= CHOICE {
certificate Certificate,
tbsCert [1] EXPLICIT TBSCertificate,
taInfo [2] EXPLICIT TrustAnchorInfo
}Variants§
Trait Implementations§
Source§impl<'__der_lifetime, P: Profile> Choice<'__der_lifetime> for TrustAnchorChoice<P>
impl<'__der_lifetime, P: Profile> Choice<'__der_lifetime> for TrustAnchorChoice<P>
Source§impl<'__der_lifetime, P: Profile> Decode<'__der_lifetime> for TrustAnchorChoice<P>
impl<'__der_lifetime, P: Profile> Decode<'__der_lifetime> for TrustAnchorChoice<P>
Source§impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for TrustAnchorChoice<P>
impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for TrustAnchorChoice<P>
Source§impl<'__der_lifetime, P: Profile> EncodeValue for TrustAnchorChoice<P>
impl<'__der_lifetime, P: Profile> EncodeValue for TrustAnchorChoice<P>
impl<P: Eq + Profile> Eq for TrustAnchorChoice<P>
Source§impl<'__der_lifetime, P: Profile> IsConstructed for TrustAnchorChoice<P>
impl<'__der_lifetime, P: Profile> IsConstructed for TrustAnchorChoice<P>
Source§const CONSTRUCTED: bool = true
const CONSTRUCTED: bool = true
ASN.1 constructed bit
impl<P: PartialEq + Profile> StructuralPartialEq for TrustAnchorChoice<P>
Auto Trait Implementations§
impl<P> Freeze for TrustAnchorChoice<P>
impl<P> RefUnwindSafe for TrustAnchorChoice<P>where
CertificateInner<P>: RefUnwindSafe,
TbsCertificateInner<P>: RefUnwindSafe,
TrustAnchorInfo<P>: RefUnwindSafe,
impl<P> Send for TrustAnchorChoice<P>
impl<P> Sync for TrustAnchorChoice<P>
impl<P> Unpin for TrustAnchorChoice<P>
impl<P> UnsafeUnpin for TrustAnchorChoice<P>where
CertificateInner<P>: UnsafeUnpin,
TbsCertificateInner<P>: UnsafeUnpin,
TrustAnchorInfo<P>: UnsafeUnpin,
impl<P> UnwindSafe for TrustAnchorChoice<P>where
CertificateInner<P>: UnwindSafe,
TbsCertificateInner<P>: UnwindSafe,
TrustAnchorInfo<P>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more