Crate nftables_async

Source

Modules§

process

Constants§

NFT_DEFAULT_PROGRAM
The default “nft” program used via PATH lookup.

Functions§

apply_ruleset
Apply the given Nftables ruleset, optionally overriding which “nft” binary to use and adding extra arguments.
apply_ruleset_raw
Apply the given ruleset as a String payload instead of an Nftables reference.
get_current_ruleset
Get the current ruleset as Nftables via, optionally overriding which “nft” binary to use and what extra arguments to pass.
get_current_ruleset_raw
Get the current ruleset as a String payload instead of an Nftables instance.