pub struct WrappedOptional<P> { /* private fields */ }Expand description
Wraps an optional ValidationPolicy; a None policy always meets the requirements. Built by the
policy! macro when composing a bare if block (no else).
Implementations§
Trait Implementations§
Source§impl<P: ValidationPolicy> ValidationPolicy for WrappedOptional<P>
impl<P: ValidationPolicy> ValidationPolicy for WrappedOptional<P>
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<P> Freeze for WrappedOptional<P>
impl<P> RefUnwindSafe for WrappedOptional<P>where
Option<P>: RefUnwindSafe,
impl<P> Send for WrappedOptional<P>
impl<P> Sync for WrappedOptional<P>
impl<P> Unpin for WrappedOptional<P>
impl<P> UnsafeUnpin for WrappedOptional<P>where
Option<P>: UnsafeUnpin,
impl<P> UnwindSafe for WrappedOptional<P>where
Option<P>: 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