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§
Sourcefn get_routing_metric(&mut self, device_id: &Self::DeviceId) -> RawMetric
fn get_routing_metric(&mut self, device_id: &Self::DeviceId) -> RawMetric
Returns the routing metric for the device.
Sourcefn is_ip_device_enabled(&mut self, device_id: &Self::DeviceId) -> bool
fn is_ip_device_enabled(&mut self, device_id: &Self::DeviceId) -> bool
Returns true if the IP device is enabled.