arcbox_datapath/error.rs
1//! Error type for the datapath buffer pool.
2
3use thiserror::Error;
4
5/// Result alias for datapath operations.
6pub type Result<T> = std::result::Result<T, Error>;
7
8/// Errors raised by the datapath primitives.
9#[derive(Debug, Error)]
10pub enum Error {
11 /// Packet pool error (buffer too large, or pool exhausted).
12 #[error("packet pool error: {0}")]
13 PacketPool(String),
14}