pub enum Type {
Filter,
Route,
Nat,
}Expand description
Representation of nftables chain-types.
§Attribution
Parts of the documentation have been taken from https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains.
Variants§
Filter
Is used to filter packets.
Supported by the following table-families:
- Arp
- Bridge
- Ip
- Ip6
- Inet
Route
Is used to reroute packets if any relevant IP header field or the packet mark is modified.
Supported by the following table-families:
- Ip
- Ip6
Nat
Is used to perform Networking Address Translation (NAT).
Supported by the following table-families:
- Ip
- Ip6
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more