netstack3_ip::nud

Trait NudConfigContext

Source
pub trait NudConfigContext<I: Ip> {
    // Required methods
    fn retransmit_timeout(&mut self) -> NonZeroDuration;
    fn with_nud_user_config<O, F: FnOnce(&NudUserConfig) -> O>(
        &mut self,
        cb: F,
    ) -> O;

    // Provided methods
    fn max_unicast_solicit(&mut self) -> NonZeroU16 { ... }
    fn max_multicast_solicit(&mut self) -> NonZeroU16 { ... }
    fn base_reachable_time(&mut self) -> NonZeroDuration { ... }
}
Expand description

The execution context for NUD that allows accessing NUD configuration (such as timer durations) for a particular device.

Required Methods§

Source

fn retransmit_timeout(&mut self) -> NonZeroDuration

The amount of time between retransmissions of neighbor probe messages.

This corresponds to the configurable per-interface RetransTimer value used in NUD as defined in RFC 4861 section 6.3.2.

Source

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§

Source

fn max_unicast_solicit(&mut self) -> NonZeroU16

Returns the maximum number of unicast solicitations.

Source

fn max_multicast_solicit(&mut self) -> NonZeroU16

Returns the maximum number of multicast solicitations.

Source

fn base_reachable_time(&mut self) -> NonZeroDuration

Returns the base reachable time, the duration a neighbor is considered reachable after receiving a reachability confirmation.

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.

Implementors§