pub enum Either<A, B> {
First(A),
Second(B),
}Expand description
Chooses between two ValidationPolicy values at construction time; only the active variant is
evaluated. Built by the policy! macro when composing an if/else block.
Variants§
Trait Implementations§
Source§impl<A: ValidationPolicy, B: ValidationPolicy> ValidationPolicy for Either<A, B>
impl<A: ValidationPolicy, B: ValidationPolicy> ValidationPolicy for Either<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 Either<A, B>
impl<A, B> RefUnwindSafe for Either<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Either<A, B>
impl<A, B> Sync for Either<A, B>
impl<A, B> Unpin for Either<A, B>
impl<A, B> UnsafeUnpin for Either<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Either<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