pub fn flush(
        self,
        index: u32,
    ) -> AddressDelRequestFuture<impl Future<Item = AddressDelRequest, Error = NetlinkIpError>>
    {
        // get all addresses first
        // then create a delete request with all address messages included
        let future = self.get().get_address_msgs_future().map(move |addr_msgs| {
            let msgs = addr_msgs
                .into_iter()
                .filter(|msg| msg.header.index == index)
                .collect::<Vec<_>>();
            AddressDelRequest::new(self.0.clone(), msgs)
        });
        AddressDelRequestFuture(future)
    }
/// Delete all ip addresses on an interface with the given index (equivalent to `ip addr flush`)
Delete all ip addresses on an interface with the given index (equivalent to `ip addr flush`)
Delete all ip addresses on an interface with the given index ( equivalent to ` ip addr flush ` )
pub fn flush(
        self,
        index: u32,
    ) -> AddressDelRequestFuture<impl Future<Item = AddressDelRequest, Error = NetlinkIpError>>
    {
        // get all addresses first
        // then create a delete request with all address messages included
        let future = self.get().get_address_msgs_future().map(move |addr_msgs| {
            let msgs = addr_msgs
                .into_iter()
                .filter(|msg| msg.header.index == index)
                .collect::<Vec<_>>();
            AddressDelRequest::new(self.0.clone(), msgs)
        });
        AddressDelRequestFuture(future)
    }
pub fn flush ( self , index : u32 , ) -> AddressDelRequestFuture < impl Future < Item = AddressDelRequest , Error = NetlinkIpError > > { // get all addresses first // then create a delete request with all address messages included let future = self . get ( ) . get_address_msgs_future ( ) . map ( move | addr_msgs | { let msgs = addr_msgs . into_iter ( ) . filter ( | msg | msg . header . index == index ) . collect :: < Vec < _ > > ( ) ; AddressDelRequest :: new ( self . 0 . clone ( ) , msgs ) } ) ; AddressDelRequestFuture ( future ) }
Delete all ip addresses on an interface with the given index (equivalent to `ip addr flush`)
Delete all ip addresses on an interface with the given index ( equivalent to ` ip addr flush ` )
self
index
u32
self
index
u32