pub struct DeviceBaseInfo {
pub rx_depth: u16,
pub tx_depth: u16,
pub buffer_alignment: u32,
pub max_buffer_length: Option<NonZeroU32>,
pub min_rx_buffer_length: u32,
pub min_tx_buffer_length: u32,
pub min_tx_buffer_head: u16,
pub min_tx_buffer_tail: u16,
pub max_buffer_parts: u8,
pub rx_accel: Vec<RxAcceleration>,
pub tx_accel: Vec<TxAcceleration>,
}Expand description
Network device base info with all required fields.
Fields§
§rx_depth: u16Maximum number of items in rx FIFO (per session).
tx_depth: u16Maximum number of items in tx FIFO (per session).
buffer_alignment: u32Alignment requirement for buffers in the data VMO.
max_buffer_length: Option<NonZeroU32>Maximum supported length of buffers in the data VMO, in bytes.
min_rx_buffer_length: u32The minimum rx buffer length required for device.
min_tx_buffer_length: u32The minimum tx buffer length required for the device.
min_tx_buffer_head: u16The number of bytes the device requests be free as head space in a tx buffer.
min_tx_buffer_tail: u16The amount of bytes the device requests be free as tail space in a tx buffer.
max_buffer_parts: u8Maximum descriptor chain length accepted by the device.
rx_accel: Vec<RxAcceleration>Available rx acceleration flags for this device.
tx_accel: Vec<TxAcceleration>Available tx acceleration flags for this device.
Trait Implementations§
Source§impl Clone for DeviceBaseInfo
impl Clone for DeviceBaseInfo
Source§fn clone(&self) -> DeviceBaseInfo
fn clone(&self) -> DeviceBaseInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceBaseInfo
impl Debug for DeviceBaseInfo
Source§impl From<DeviceBaseInfo> for DeviceBaseInfo
impl From<DeviceBaseInfo> for DeviceBaseInfo
Source§fn from(src: DeviceBaseInfo) -> DeviceBaseInfo
fn from(src: DeviceBaseInfo) -> DeviceBaseInfo
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeviceBaseInfo
impl RefUnwindSafe for DeviceBaseInfo
impl Send for DeviceBaseInfo
impl Sync for DeviceBaseInfo
impl Unpin for DeviceBaseInfo
impl UnwindSafe for DeviceBaseInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more