nell 0.3.0

Linux netlink interface
Documentation
// Copyright (C) 2020 - Will Glozer. All rights reserved.

use std::fmt::{Debug, Display, Formatter, Result};
use std::num::TryFromIntError;

#[derive(Debug)]
pub enum Error {
    Conversion(TryFromIntError),
    Overrun,
}

impl std::error::Error for Error {}

impl Display for Error {
    fn fmt(&self, f: &mut Formatter) -> Result {
        write!(f, "{:?}", self)
    }
}

impl From<TryFromIntError> for Error {
    fn from(err: TryFromIntError) -> Self {
        Self::Conversion(err)
    }
}