push-packet 0.1.0

Packet-inspection and routing library for Linux, built on eBPF XDP and AF_XDP with aya.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[non_exhaustive]
#[allow(missing_docs)]
#[derive(Debug, thiserror::Error)]
pub enum ChannelError {
    #[error("the channel cannot be polled.")]
    Disconnected,
    #[error("there is no available item in the socket or buffer")]
    Empty,
    #[error("poll on channel fd failed")]
    Poll(#[source] nix::errno::Errno),
}