use std::io;
use netlink_packet_core::NetlinkMessage;
#[derive(thiserror::Error, Debug)]
pub enum Error<T> {
#[error("the netlink connection is closed")]
ConnectionClosed,
#[error("received an error message as a response: {0:?}")]
NetlinkError(NetlinkMessage<T>),
#[error("error while reading from or writing to the netlink socket: {0}")]
SocketIo(#[from] io::Error),
}