Enum pfctl::IcmpType [−][src]
#[non_exhaustive]
pub enum IcmpType {
EchoRep,
Unreach(IcmpUnreachCode),
EchoReq,
Trace,
Icmp6(Icmp6Type),
}
Expand description
ICMP type (and code). Used to match a rule against an ICMP packets type
and code
fields.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Echo reply.
Unreach(IcmpUnreachCode)
Destination unreachable
Tuple Fields of Unreach
Echo request.
Traceroute.
Icmp6(Icmp6Type)
ICMPv6
Tuple Fields of Icmp6
0: Icmp6Type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IcmpType
impl UnwindSafe for IcmpType
Blanket Implementations
Mutably borrows from an owned value. Read more