netstack3_core::neighbor

Trait LinkResolutionNotifier

Source
pub trait LinkResolutionNotifier<D>:
    Sized
    + Debug
    + Send
where D: LinkDevice,
{ type Observer; // Required methods fn new() -> (Self, Self::Observer); fn notify( self, result: Result<<D as LinkDevice>::Address, AddressResolutionFailed>, ); }
Expand description

A notifier held by core that can be used to inform interested parties of the result of link address resolution.

Required Associated Types§

Source

type Observer

The corresponding observer that can be used to observe the result of link address resolution.

Required Methods§

Source

fn new() -> (Self, Self::Observer)

Create a connected (notifier, observer) pair.

Source

fn notify( self, result: Result<<D as LinkDevice>::Address, AddressResolutionFailed>, )

Signal to Bindings that link address resolution has completed for a neighbor.

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§