Trait netstack3_ip::nud::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.

Object Safety§

This trait is not object safe.

Implementors§