pub trait WithIpDeviceConfigurationMutInner<I: IpDeviceIpExt, BT: IpDeviceStateBindingsTypes>: DeviceIdContext<AnyDevice> {
    type IpDeviceStateCtx<'s>: IpDeviceStateContext<I, BT, DeviceId = Self::DeviceId> + GmpHandler<I, BT> + NudIpHandler<I, BT> + 's
       where Self: 's;

    // Required methods
    fn ip_device_configuration_and_ctx(
        &mut self,
    ) -> (&I::Configuration, Self::IpDeviceStateCtx<'_>);
    fn with_configuration_and_flags_mut<O, F: FnOnce(&mut I::Configuration, &mut IpDeviceFlags) -> O>(
        &mut self,
        device_id: &Self::DeviceId,
        cb: F,
    ) -> O;
}
Expand description

The context provided to the callback passed to IpDeviceConfigurationContext::with_ip_device_configuration_mut.

Required Associated Types§

source

type IpDeviceStateCtx<'s>: IpDeviceStateContext<I, BT, DeviceId = Self::DeviceId> + GmpHandler<I, BT> + NudIpHandler<I, BT> + 's where Self: 's

The inner device state context.

Required Methods§

source

fn ip_device_configuration_and_ctx( &mut self, ) -> (&I::Configuration, Self::IpDeviceStateCtx<'_>)

Returns an immutable reference to a device’s IP configuration and an IpDeviceStateCtx.

source

fn with_configuration_and_flags_mut<O, F: FnOnce(&mut I::Configuration, &mut IpDeviceFlags) -> O>( &mut self, device_id: &Self::DeviceId, cb: F, ) -> O

Calls the function with a mutable reference to a device’s IP configuration and flags.

Object Safety§

This trait is not object safe.

Implementors§