mptcp-pm 0.1.2

Linux kernel MPTCP path manager netlink Library
Documentation
// SPDX-License-Identifier: MIT

use thiserror::Error;

use netlink_packet_core::{ErrorMessage, NetlinkMessage};
use netlink_packet_generic::GenlMessage;

use crate::MptcpPathManagerMessage;

#[derive(Clone, Eq, PartialEq, Debug, Error)]
pub enum MptcpPathManagerError {
    #[error("Received an unexpected message {0:?}")]
    UnexpectedMessage(NetlinkMessage<GenlMessage<MptcpPathManagerMessage>>),

    #[error("Received a netlink error message {0}")]
    NetlinkError(ErrorMessage),

    #[error("A netlink request failed")]
    RequestFailed(String),

    #[error("A bug in this crate")]
    Bug(String),
}