use crate::eth::_version::rx_desc::RDesRing; use crate::eth::_version::tx_desc::TDesRing; pub struct DescriptorRing { pub(crate) tx: TDesRing, pub(crate) rx: RDesRing, } impl DescriptorRing { pub const fn new() -> Self { Self { tx: TDesRing::new(), rx: RDesRing::new(), } } pub fn init(&mut self) { self.tx.init(); self.rx.init(); } }