pub struct OneOfTuple2<A, B> { /* private fields */ }Expand description
Tries first; only if it fails, tries second. The overall extensions claimed
are the intersection of both sub-policies’ claims (a critical extension is only
“handled” here if BOTH sub-policies would have handled it), deliberately
asymmetric with Tuple2, which unions its extensions. Intersection is required
here because an extension is only safely ignorable if every alternative would
have handled it.
Implementations§
Source§impl<A, B> OneOfTuple2<A, B>
impl<A, B> OneOfTuple2<A, B>
Trait Implementations§
Source§impl<A: ValidationPolicy, B: ValidationPolicy> ValidationPolicy for OneOfTuple2<A, B>
impl<A: ValidationPolicy, B: ValidationPolicy> ValidationPolicy for OneOfTuple2<A, B>
Source§fn verifying_critical_extensions(&self) -> Vec<Oid<'static>>
fn verifying_critical_extensions(&self) -> Vec<Oid<'static>>
The X.509 extension types that this policy understands and enforces. Read more
Source§fn chain_meets_policy_requirements(
&self,
chain: &UnverifiedCertificateChain<'_>,
) -> PolicyEvaluationResult
fn chain_meets_policy_requirements( &self, chain: &UnverifiedCertificateChain<'_>, ) -> PolicyEvaluationResult
Called to determine whether a given
UnverifiedCertificateChain meets the requirements of this policy. Read moreAuto Trait Implementations§
impl<A, B> Freeze for OneOfTuple2<A, B>
impl<A, B> RefUnwindSafe for OneOfTuple2<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for OneOfTuple2<A, B>
impl<A, B> Sync for OneOfTuple2<A, B>
impl<A, B> Unpin for OneOfTuple2<A, B>
impl<A, B> UnsafeUnpin for OneOfTuple2<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for OneOfTuple2<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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