macro_rules! icmpv6_dispatch {
(__internal__, $x:ident, $variable:pat => $expression:expr, $($typ:ty),+) => { ... };
($x:ident : raw, $variable:pat => $expression:expr) => { ... };
($x:ident, $variable:pat => $expression:expr) => { ... };
}
Expand description
Dispatches expressions to the type-safe variants of Icmpv6Packet
or
Icmpv6PacketRaw
.
§Usage
icmpv6_dispatch!(packet, p => p.message_mut().foo());
icmpv6_dispatch!(packet: raw, p => p.message_mut().foo());