#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub enum MemoryAdviceError
{
MemoryMapsSomethingWhichIsNotAFile,
NotASharedWritableMapping,
LockedPagesOrHugePagesOrPfnPagesAreNotSupportedForDontNeedOrRemove,
MergeablePagesAreUnsupported,
FileBackedPagesOrHugePagesOrSharedPagesOrPfnPagesAreNotSupportedForFreeOrWipeOnFork,
ProcessMaximumResidentSetSizeWouldBeExceededForWillNeed,
NotEnoughMemoryForWillNeed,
PermissionDeniedForHardwarePoison,
}
impl Display for MemoryAdviceError
{
#[inline(always)]
fn fmt(&self, f: &mut Formatter) -> fmt::Result
{
Debug::fmt(self, f)
}
}
impl error::Error for MemoryAdviceError
{
#[inline(always)]
fn source(&self) -> Option<&(dyn error::Error + 'static)>
{
None
}
}