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§
Sourcetype IpDeviceStateCtx<'s>: IpDeviceStateContext<I, BT, DeviceId = Self::DeviceId> + GmpHandler<I, BT> + NudIpHandler<I, BT> + 's
where
Self: 's
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§
Sourcefn ip_device_configuration_and_ctx(
&mut self,
) -> (&I::Configuration, Self::IpDeviceStateCtx<'_>)
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
.
Sourcefn with_configuration_and_flags_mut<O, F: FnOnce(&mut I::Configuration, &mut IpDeviceFlags) -> O>(
&mut self,
device_id: &Self::DeviceId,
cb: F,
) -> O
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.