wtx 0.44.1

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Chain Validation - Policy Mode
///
/// Dictates non-configurable rules in chain validation.
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CvPolicyMode {
  /// Ignores some rules.
  Lenient,
  /// Tries to enforce as much policies as possible.
  Strict,
}

impl CvPolicyMode {
  /// Returns `true` if the chain validation policy mode is [`Self::Strict`].
  #[must_use]
  pub fn is_strict(&self) -> bool {
    matches!(self, Self::Strict)
  }
}