Trait netstack3_device::ArpConfigContext
source · pub trait ArpConfigContext {
// Required method
fn with_nud_user_config<O, F: FnOnce(&NudUserConfig) -> O>(
&mut self,
cb: F,
) -> O;
// Provided method
fn retransmit_timeout(&mut self) -> NonZeroDuration { ... }
}
Expand description
An execution context for the ARP protocol that allows accessing configuration parameters.
Required Methods§
sourcefn with_nud_user_config<O, F: FnOnce(&NudUserConfig) -> O>(
&mut self,
cb: F,
) -> O
fn with_nud_user_config<O, F: FnOnce(&NudUserConfig) -> O>( &mut self, cb: F, ) -> O
Calls the callback with an immutable reference to NUD configurations.
Provided Methods§
sourcefn retransmit_timeout(&mut self) -> NonZeroDuration
fn retransmit_timeout(&mut self) -> NonZeroDuration
The retransmit timeout for ARP frames.
Provided implementation always return the default RFC period.
Object Safety§
This trait is not object safe.