#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(i32)]
pub enum SegmentationFaultCode
{
AddressNotMappedToObject = 1,
InvalidPermissionsForMappedObject = 2,
FailedAddressBoundChecks = 3,
FailedProtectionKeyChecks = 4,
AdiNotEnabledForMappedObject = 5,
AdiMismatchDisruptingException = 6,
AdiMismatchPreciseException = 7,
}
impl Into<i32> for SegmentationFaultCode
{
#[inline(always)]
fn into(self) -> i32
{
self as i32
}
}
impl Code for SegmentationFaultCode
{
const InclusiveMaximum: Self = SegmentationFaultCode::AdiMismatchPreciseException;
#[inline(always)]
fn rehydrate(validated_si_code: i32) -> Self
{
unsafe { transmute(validated_si_code)}
}
}