pub struct DeviceCapabilities {
pub rx_offload_capa: u64,
pub tx_offload_capa: u64,
pub max_rx_queues: u16,
pub max_tx_queues: u16,
}Expand description
Device capability information
Fields§
§rx_offload_capa: u64Supported RX offloads
tx_offload_capa: u64Supported TX offloads
max_rx_queues: u16Maximum RX queues
max_tx_queues: u16Maximum TX queues
Implementations§
Source§impl DeviceCapabilities
impl DeviceCapabilities
Sourcepub fn supports_rx_ipv4_cksum(&self) -> bool
pub fn supports_rx_ipv4_cksum(&self) -> bool
Check if RX IPv4 checksum offload is supported
Sourcepub fn supports_rx_udp_cksum(&self) -> bool
pub fn supports_rx_udp_cksum(&self) -> bool
Check if RX UDP checksum offload is supported
Sourcepub fn supports_tx_ipv4_cksum(&self) -> bool
pub fn supports_tx_ipv4_cksum(&self) -> bool
Check if TX IPv4 checksum offload is supported
Sourcepub fn supports_tx_udp_cksum(&self) -> bool
pub fn supports_tx_udp_cksum(&self) -> bool
Check if TX UDP checksum offload is supported
Sourcepub fn supports_vlan_strip(&self) -> bool
pub fn supports_vlan_strip(&self) -> bool
Check if VLAN stripping is supported
Sourcepub fn supports_vlan_insert(&self) -> bool
pub fn supports_vlan_insert(&self) -> bool
Check if VLAN insertion is supported
Trait Implementations§
Source§impl Clone for DeviceCapabilities
impl Clone for DeviceCapabilities
Source§fn clone(&self) -> DeviceCapabilities
fn clone(&self) -> DeviceCapabilities
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 DeviceCapabilities
impl Debug for DeviceCapabilities
Source§impl Default for DeviceCapabilities
impl Default for DeviceCapabilities
Source§fn default() -> DeviceCapabilities
fn default() -> DeviceCapabilities
Returns the “default value” for a type. Read more
impl Copy for DeviceCapabilities
Auto Trait Implementations§
impl Freeze for DeviceCapabilities
impl RefUnwindSafe for DeviceCapabilities
impl Send for DeviceCapabilities
impl Sync for DeviceCapabilities
impl Unpin for DeviceCapabilities
impl UnsafeUnpin for DeviceCapabilities
impl UnwindSafe for DeviceCapabilities
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