pub async fn delete_filter(&self, _id: netconfig::Id) -> error::Result<()> {
        // TODO(fxbug.dev/44183): Currently this method deletes all of the installed filter rules.
        // We need to associate each rule with an id when it is installed, so that individual filter
        // rules can be removed.
        warn!("Deleting numbered filter rules is not supported yet: Clearing all rules instead.");

        // TODO(cgibson): Need to support tracking element numbers. fxbug.dev/44183.
        match self.packet_filter.clear_filters().await {
            Ok(_) => Ok(()),
            Err(e) => {
                warn!("Failed to clear filter rules: {:?}", e);
                Err(error::NetworkManager::Service(error::Service::ErrorClearingPacketFilterRules))
            }
        }
    }
/// Deletes a packet filter rule.
Deletes a packet filter rule.
Deletes a packet filter rule .
pub async fn delete_filter(&self, _id: netconfig::Id) -> error::Result<()> {
        // TODO(fxbug.dev/44183): Currently this method deletes all of the installed filter rules.
        // We need to associate each rule with an id when it is installed, so that individual filter
        // rules can be removed.
        warn!("Deleting numbered filter rules is not supported yet: Clearing all rules instead.");
        // TODO(cgibson): Need to support tracking element numbers. fxbug.dev/44183.
        match self.packet_filter.clear_filters().await {
            Ok(_) => Ok(()),
            Err(e) => {
                warn!("Failed to clear filter rules: {:?}", e);
                Err(error::NetworkManager::Service(error::Service::ErrorClearingPacketFilterRules))
            }
        }
    }
pub async fn delete_filter ( & self , _id : netconfig :: Id ) -> error :: Result < ( ) > { // TODO(fxbug.dev/44183): Currently this method deletes all of the installed filter rules. // We need to associate each rule with an id when it is installed, so that individual filter // rules can be removed. warn ! ( " " ) ; // TODO(cgibson): Need to support tracking element numbers. fxbug.dev/44183. match self . packet_filter . clear_filters ( ) . await { Ok ( _ ) => Ok ( ( ) ) , Err ( e ) => { warn ! ( " " e ) ; Err ( error :: NetworkManager :: Service ( error :: Service :: ErrorClearingPacketFilterRules ) ) } } }
Deletes a packet filter rule.
Deletes a packet filter rule .
&self
_id
netconfig::Id
&self
_id
netconfig::Id