pub trait IpDeviceAddressContext<I: IpDeviceIpExt, BT: InstantBindingsTypes>: IpDeviceAddressIdContext<I> {
// Required methods
fn with_ip_address_data<O, F: FnOnce(&IpAddressData<I, BT::Instant>) -> O>(
&mut self,
device_id: &Self::DeviceId,
addr_id: &Self::AddressId,
cb: F,
) -> O;
fn with_ip_address_data_mut<O, F: FnOnce(&mut IpAddressData<I, BT::Instant>) -> O>(
&mut self,
device_id: &Self::DeviceId,
addr_id: &Self::AddressId,
cb: F,
) -> O;
}
Expand description
The core context providing access to device IP address state.
Required Methods§
Sourcefn with_ip_address_data<O, F: FnOnce(&IpAddressData<I, BT::Instant>) -> O>(
&mut self,
device_id: &Self::DeviceId,
addr_id: &Self::AddressId,
cb: F,
) -> O
fn with_ip_address_data<O, F: FnOnce(&IpAddressData<I, BT::Instant>) -> O>( &mut self, device_id: &Self::DeviceId, addr_id: &Self::AddressId, cb: F, ) -> O
Calls the callback with a reference to the address data addr_id
on
device_id
.
Sourcefn with_ip_address_data_mut<O, F: FnOnce(&mut IpAddressData<I, BT::Instant>) -> O>(
&mut self,
device_id: &Self::DeviceId,
addr_id: &Self::AddressId,
cb: F,
) -> O
fn with_ip_address_data_mut<O, F: FnOnce(&mut IpAddressData<I, BT::Instant>) -> O>( &mut self, device_id: &Self::DeviceId, addr_id: &Self::AddressId, cb: F, ) -> O
Calls the callback with a mutable reference to the address data
addr_id
on device_id
.
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.