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

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.

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]

[src]

Formats the value using the given formatter.

impl Clone for DeviceLimits
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for DeviceLimits
[src]

[src]

Returns the "default value" for a type. Read more