#[non_exhaustive]pub enum IcmpType {
EchoRep,
Unreach(IcmpUnreachCode),
EchoReq,
Timex(IcmpTimexCode),
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.
EchoRep
Echo reply.
Unreach(IcmpUnreachCode)
Destination unreachable
EchoReq
Echo request.
Timex(IcmpTimexCode)
Time Exceeded
Trace
Traceroute.
Icmp6(Icmp6Type)
ICMPv6
Trait Implementations§
source§impl PartialEq for IcmpType
impl PartialEq for IcmpType
impl Copy for IcmpType
impl Eq for IcmpType
impl StructuralPartialEq for IcmpType
Auto Trait Implementations§
impl Freeze for IcmpType
impl RefUnwindSafe for IcmpType
impl Send for IcmpType
impl Sync for IcmpType
impl Unpin for IcmpType
impl UnwindSafe for IcmpType
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