Enum rocket::mtls::x509::ParsedExtension
[−]pub enum ParsedExtension<'a> {
Show 23 variants
UnsupportedExtension {
oid: Oid<'a>,
},
ParseError {
error: Err<Error>,
},
AuthorityKeyIdentifier(AuthorityKeyIdentifier<'a>),
SubjectKeyIdentifier(KeyIdentifier<'a>),
KeyUsage(KeyUsage),
CertificatePolicies(Vec<PolicyInformation<'a>, Global>),
PolicyMappings(PolicyMappings<'a>),
SubjectAlternativeName(SubjectAlternativeName<'a>),
IssuerAlternativeName(IssuerAlternativeName<'a>),
BasicConstraints(BasicConstraints),
NameConstraints(NameConstraints<'a>),
PolicyConstraints(PolicyConstraints),
ExtendedKeyUsage(ExtendedKeyUsage<'a>),
CRLDistributionPoints(Vec<CRLDistributionPoint<'a>, Global>),
InhibitAnyPolicy(InhibitAnyPolicy),
AuthorityInfoAccess(AuthorityInfoAccess<'a>),
NSCertType(NSCertType),
NsCertComment(&'a str),
CRLNumber(BigUint),
ReasonCode(ReasonCode),
InvalidityDate(ASN1Time),
SCT(Vec<SignedCertificateTimestamp<'a>, Global>),
Unparsed,
}
mtls
only.Variants
UnsupportedExtension
Fields
oid: Oid<'a>
Crate parser does not support this extension (yet)
ParseError
AuthorityKeyIdentifier(AuthorityKeyIdentifier<'a>)
Section 4.2.1.1 of rfc 5280
SubjectKeyIdentifier(KeyIdentifier<'a>)
Section 4.2.1.2 of rfc 5280
KeyUsage(KeyUsage)
Section 4.2.1.3 of rfc 5280
CertificatePolicies(Vec<PolicyInformation<'a>, Global>)
Section 4.2.1.4 of rfc 5280
PolicyMappings(PolicyMappings<'a>)
Section 4.2.1.5 of rfc 5280
SubjectAlternativeName(SubjectAlternativeName<'a>)
Section 4.2.1.6 of rfc 5280
IssuerAlternativeName(IssuerAlternativeName<'a>)
Section 4.2.1.7 of rfc 5280
BasicConstraints(BasicConstraints)
Section 4.2.1.9 of rfc 5280
NameConstraints(NameConstraints<'a>)
Section 4.2.1.10 of rfc 5280
PolicyConstraints(PolicyConstraints)
Section 4.2.1.11 of rfc 5280
ExtendedKeyUsage(ExtendedKeyUsage<'a>)
Section 4.2.1.12 of rfc 5280
CRLDistributionPoints(Vec<CRLDistributionPoint<'a>, Global>)
Section 4.2.1.13 of rfc 5280
InhibitAnyPolicy(InhibitAnyPolicy)
Section 4.2.1.14 of rfc 5280
AuthorityInfoAccess(AuthorityInfoAccess<'a>)
Section 4.2.2.1 of rfc 5280
NSCertType(NSCertType)
Netscape certificate type (subject is SSL client, an SSL server, or a CA)
NsCertComment(&'a str)
Netscape certificate comment
CRLNumber(BigUint)
Section 5.3.1 of rfc 5280
ReasonCode(ReasonCode)
Section 5.3.1 of rfc 5280
InvalidityDate(ASN1Time)
Section 5.3.3 of rfc 5280
SCT(Vec<SignedCertificateTimestamp<'a>, Global>)
rfc 6962
Unparsed
Unparsed extension (was not requested in parsing options)
Implementations
impl<'a> ParsedExtension<'a>
impl<'a> ParsedExtension<'a>
Trait Implementations
impl<'a> Clone for ParsedExtension<'a>
impl<'a> Clone for ParsedExtension<'a>
fn clone(&self) -> ParsedExtension<'a>
fn clone(&self) -> ParsedExtension<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Debug for ParsedExtension<'a>
impl<'a> Debug for ParsedExtension<'a>
impl<'a> PartialEq<ParsedExtension<'a>> for ParsedExtension<'a>
impl<'a> PartialEq<ParsedExtension<'a>> for ParsedExtension<'a>
fn eq(&self, other: &ParsedExtension<'a>) -> bool
fn eq(&self, other: &ParsedExtension<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ParsedExtension<'a>) -> bool
fn ne(&self, other: &ParsedExtension<'a>) -> bool
This method tests for !=
.
impl<'a> StructuralPartialEq for ParsedExtension<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParsedExtension<'a>
impl<'a> Send for ParsedExtension<'a>
impl<'a> Sync for ParsedExtension<'a>
impl<'a> Unpin for ParsedExtension<'a>
impl<'a> UnwindSafe for ParsedExtension<'a>
Blanket Implementations
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more