#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub enum RawTracePointAttachError
{
TracePointNameNotFound,
OutOfMemory,
}
impl Display for RawTracePointAttachError
{
#[inline(always)]
fn fmt(&self, f: &mut Formatter) -> fmt::Result
{
Debug::fmt(self, f)
}
}
impl error::Error for RawTracePointAttachError
{
#[inline(always)]
fn source(&self) -> Option<&(dyn error::Error + 'static)>
{
use self::RawTracePointAttachError::*;
match self
{
&TracePointNameNotFound => None,
&OutOfMemory => None,
}
}
}