use crate::lib_bool_enum;
use crate::result::Result;
lib_bool_enum! {
ContentProtectionApp {
Unsupported = false,
Supported = true,
}
}
impl ContentProtectionApp {
pub const fn from_inner(val: bool) -> Self {
Self::from_bool(val)
}
pub const fn try_from_inner(val: bool) -> Result<Self> {
Ok(Self::from_bool(val))
}
pub const fn into_inner(self) -> bool {
self.into_bool()
}
}