#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum Policy {
#[default]
BestEffort,
Strict,
Disabled,
}
impl Policy {
#[inline]
pub fn is_strict(self) -> bool {
matches!(self, Policy::Strict)
}
#[inline]
pub fn protection_enabled(self) -> bool {
!matches!(self, Policy::Disabled)
}
}