Struct smoltcp::phy::DeviceLimits
[−]
[src]
pub struct DeviceLimits { pub max_transmission_unit: usize, pub max_burst_size: Option<usize>, // some fields omitted }
A description of device limitations.
Higher-level protocols may achieve higher throughput or lower latency if they consider the bandwidth or packet size limitations.
Fields
max_transmission_unit: usize
Maximum transmission unit.
The network device is unable to send or receive frames larger than the value returned by this function.
For Ethernet, MTU will fall between 576 (for IPv4) or 1280 (for IPv6) and 9216 octets.
max_burst_size: Option<usize>
Maximum burst size, in terms of MTU.
The network device is unable to send or receive bursts large than the value returned by this function.
If None
, there is no fixed limit on burst size, e.g. if network buffers are
dynamically allocated.
Trait Implementations
impl Debug for DeviceLimits
[src]
impl Clone for DeviceLimits
[src]
fn clone(&self) -> DeviceLimits
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for DeviceLimits
[src]
fn default() -> DeviceLimits
[src]
Returns the "default value" for a type. Read more