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.
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.