namib-project / nftables-rs

Safe abstraction for nftables JSON API (libnftables-json).
https://crates.io/crates/nftables
Apache License 2.0
32 stars 15 forks source link

Mark Statement as non-exhaustive enum #71

Closed jwhb closed 1 month ago

jwhb commented 1 month ago

Introducing non-exhaustive mark to Statement enum avoids future breaking changes when statements are added by forcing users to add a wildcard arm to match on statement.

Proposed in #70.