pub trait DeviceConfigurationContext<D: Device>: DeviceIdContext<D> {
    // Required methods
    fn with_nud_config<I: Ip, O, F: FnOnce(Option<&NudUserConfig>) -> O>(
        &mut self,
        device_id: &Self::DeviceId,
        f: F,
    ) -> O;
    fn with_nud_config_mut<I: Ip, O, F: FnOnce(Option<&mut NudUserConfig>) -> O>(
        &mut self,
        device_id: &Self::DeviceId,
        f: F,
    ) -> O;
}
Expand description

A trait abstracting device configuration.

This trait allows the device API to perform device confiuration at the device layer.

Required Methods§

source

fn with_nud_config<I: Ip, O, F: FnOnce(Option<&NudUserConfig>) -> O>( &mut self, device_id: &Self::DeviceId, f: F, ) -> O

Calls the callback with a mutable reference to the NUD user configuration for IP version I.

If the device does not support NUD, the callback is called with None,

source

fn with_nud_config_mut<I: Ip, O, F: FnOnce(Option<&mut NudUserConfig>) -> O>( &mut self, device_id: &Self::DeviceId, f: F, ) -> O

Calls the callback with a mutable reference to the NUD user configuration for IP version I.

If the device does not support NUD, the callback is called with None,

Object Safety§

This trait is not object safe.

Implementors§