pub trait EthernetIpLinkDeviceStaticStateContext: DeviceIdContext<EthernetLinkDevice> {
    // Required method
    fn with_static_ethernet_device_state<O, F: FnOnce(&StaticEthernetDeviceState) -> O>(
        &mut self,
        device_id: &Self::DeviceId,
        cb: F,
    ) -> O;
}
Expand description

Provides access to an ethernet device’s static state.

Required Methods§

source

fn with_static_ethernet_device_state<O, F: FnOnce(&StaticEthernetDeviceState) -> O>( &mut self, device_id: &Self::DeviceId, cb: F, ) -> O

Calls the function with an immutable reference to the ethernet device’s static state.

Object Safety§

This trait is not object safe.

Implementors§