Function apply_ruleset

Source
pub async fn apply_ruleset<P: Process>(
    nftables: Nftables<'_>,
    program: Option<&str>,
    args: Option<Vec<&str>>,
) -> Result<(), NftablesError>
Expand description

Apply the given Nftables ruleset, optionally overriding which “nft” binary to use and adding extra arguments.