pub(crate) async fn wait_for_interface_offline(&mut self, if_id: u64) {
        let check_offline = |info: &DeviceInfo| match info.info() {
            DeviceSpecificInfo::Ethernet(EthernetInfo {
                common_info: CommonInfo { admin_enabled: _, mtu: _ },
                client: _,
                mac: _,
                features: _,
                phy_up,
            }) => !phy_up,
            DeviceSpecificInfo::Loopback(LoopbackInfo {
                common_info: CommonInfo { admin_enabled: _, mtu: _ },
            }) => false,
        };
        self.wait_for_interface_status(if_id, check_offline).await;
    }
/// Waits for interface with given `if_id` to go offline.
Waits for interface with given `if_id` to go offline.
Waits for interface with given ` if_id ` to go offline .
pub(crate) async fn wait_for_interface_offline(&mut self, if_id: u64) {
        let check_offline = |info: &DeviceInfo| match info.info() {
            DeviceSpecificInfo::Ethernet(EthernetInfo {
                common_info: CommonInfo { admin_enabled: _, mtu: _ },
                client: _,
                mac: _,
                features: _,
                phy_up,
            }) => !phy_up,
            DeviceSpecificInfo::Loopback(LoopbackInfo {
                common_info: CommonInfo { admin_enabled: _, mtu: _ },
            }) => false,
        };
        self.wait_for_interface_status(if_id, check_offline).await;
    }
pub ( crate ) async fn wait_for_interface_offline ( & mut self , if_id : u64 ) { let check_offline = | info : & DeviceInfo | match info . info ( ) { DeviceSpecificInfo :: Ethernet ( EthernetInfo { common_info : CommonInfo { admin_enabled : _ , mtu : _ } , client : _ , mac : _ , features : _ , phy_up , } ) => ! phy_up , DeviceSpecificInfo :: Loopback ( LoopbackInfo { common_info : CommonInfo { admin_enabled : _ , mtu : _ } , } ) => false , } ; self . wait_for_interface_status ( if_id , check_offline ) . await ; }
Waits for interface with given `if_id` to go offline.
Waits for interface with given ` if_id ` to go offline .
&mut self
if_id
u64
&mut self
if_id
u64