#[derive(Debug)]
pub enum DisableTransparentHugePagesError
{
Defragmentation(io::Error),
Usage(io::Error),
}
impl Display for DisableTransparentHugePagesError
{
#[inline(always)]
fn fmt(&self, f: &mut Formatter) -> fmt::Result
{
<DisableTransparentHugePagesError as Debug>::fmt(self, f)
}
}
impl error::Error for DisableTransparentHugePagesError
{
#[inline(always)]
fn source(&self) -> Option<&(error::Error + 'static)>
{
use self::DisableTransparentHugePagesError::*;
match self
{
&Defragmentation(ref error) => Some(error),
&Usage(ref error) => Some(error),
}
}
}