Trait netstack3_ip::IpRoutingDeviceContext

source ·
pub trait IpRoutingDeviceContext<I: Ip>: DeviceIdContext<AnyDevice> {
    // Required methods
    fn get_routing_metric(&mut self, device_id: &Self::DeviceId) -> RawMetric;
    fn is_ip_device_enabled(&mut self, device_id: &Self::DeviceId) -> bool;
}
Expand description

Provides access to a device for the purposes of IP routing.

Required Methods§

source

fn get_routing_metric(&mut self, device_id: &Self::DeviceId) -> RawMetric

Returns the routing metric for the device.

source

fn is_ip_device_enabled(&mut self, device_id: &Self::DeviceId) -> bool

Returns true if the IP device is enabled.

Implementors§