pub trait LinkResolutionNotifier<D: LinkDevice>: Debug + Sized + Send {
    type Observer;

    // Required methods
    fn new() -> (Self, Self::Observer);
    fn notify(self, result: Result<D::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::Address, AddressResolutionFailed>)

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<D: LinkDevice> LinkResolutionNotifier<D> for ()

§

type Observer = ()

source§

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

source§

fn notify(self, _result: Result<D::Address, AddressResolutionFailed>)

Implementors§