pub trait IpDeviceConfigurationHandler<I: IpDeviceIpExt, BC>: DeviceIdContext<AnyDevice> {
// Required method
fn apply_configuration(
&mut self,
bindings_ctx: &mut BC,
config: PendingIpDeviceConfigurationUpdate<'_, I, Self::DeviceId>,
) -> I::ConfigurationUpdate;
}
Expand description
A trait abstracting configuration between IPv4 and IPv6.
Configuration is different enough between IPv4 and IPv6 that the implementations are completely disjoint. This trait allows us to implement these completely separately but still offer a unified configuration update API.
Required Methods§
Sourcefn apply_configuration(
&mut self,
bindings_ctx: &mut BC,
config: PendingIpDeviceConfigurationUpdate<'_, I, Self::DeviceId>,
) -> I::ConfigurationUpdate
fn apply_configuration( &mut self, bindings_ctx: &mut BC, config: PendingIpDeviceConfigurationUpdate<'_, I, Self::DeviceId>, ) -> I::ConfigurationUpdate
Applies the [PendingIpDeviceConfigurationUpdate
].