#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
#[derive(Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct PendingQueueDepths
{
receive_pending_queue_depth: Option<QueueDepth>,
receive_mini_pending_queue_depth: Option<QueueDepth>,
receive_jumbo_pending_queue_depth: Option<QueueDepth>,
transmit_pending_queue_depth: Option<QueueDepth>,
}
impl PendingQueueDepths
{
#[inline(always)]
pub(crate) const fn new(receive_pending_queue_depth: Option<QueueDepth>, receive_jumbo_pending_queue_depth: Option<QueueDepth>, receive_mini_pending_queue_depth: Option<QueueDepth>, transmit_pending_queue_depth: Option<QueueDepth>) -> Self
{
Self
{
receive_pending_queue_depth,
receive_jumbo_pending_queue_depth,
receive_mini_pending_queue_depth,
transmit_pending_queue_depth,
}
}
}