Skip to main content

IpDeviceMtuContext

Trait IpDeviceMtuContext 

Source
pub trait IpDeviceMtuContext<I: Ip>: DeviceIdContext<AnyDevice> {
    // Required method
    fn get_mtu(&mut self, device_id: &Self::DeviceId) -> Mtu;
}
Expand description

Provides access to an IP device’s MTU for the IP layer.

Required Methods§

Source

fn get_mtu(&mut self, device_id: &Self::DeviceId) -> Mtu

Returns the MTU of the device.

The MTU is the maximum size of an IP packet.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§