Lines Matching refs:Protocol

213 pub enum Protocol {  enum
227 impl fmt::Display for Protocol { implementation
230 Protocol::HopByHop => write!(f, "Hop-by-Hop"), in fmt()
231 Protocol::Icmp => write!(f, "ICMP"), in fmt()
232 Protocol::Igmp => write!(f, "IGMP"), in fmt()
233 Protocol::Tcp => write!(f, "TCP"), in fmt()
234 Protocol::Udp => write!(f, "UDP"), in fmt()
235 Protocol::Ipv6Route => write!(f, "IPv6-Route"), in fmt()
236 Protocol::Ipv6Frag => write!(f, "IPv6-Frag"), in fmt()
237 Protocol::Icmpv6 => write!(f, "ICMPv6"), in fmt()
238 Protocol::Ipv6NoNxt => write!(f, "IPv6-NoNxt"), in fmt()
239 Protocol::Ipv6Opts => write!(f, "IPv6-Opts"), in fmt()
240 Protocol::Unknown(id) => write!(f, "0x{id:02x}"), in fmt()
245 impl From<smoltcp::wire::IpProtocol> for Protocol { implementation
248 Protocol::from(x) in from()
252 impl From<u8> for Protocol { implementation
255 0x00 => Protocol::HopByHop, in from()
256 0x01 => Protocol::Icmp, in from()
257 0x02 => Protocol::Igmp, in from()
258 0x06 => Protocol::Tcp, in from()
259 0x11 => Protocol::Udp, in from()
260 0x2b => Protocol::Ipv6Route, in from()
261 0x2c => Protocol::Ipv6Frag, in from()
262 0x3a => Protocol::Icmpv6, in from()
263 0x3b => Protocol::Ipv6NoNxt, in from()
264 0x3c => Protocol::Ipv6Opts, in from()
265 _ => Protocol::Unknown(value), in from()
270 impl Into<u8> for Protocol { implementation
273 Protocol::HopByHop => 0x00, in into()
274 Protocol::Icmp => 0x01, in into()
275 Protocol::Igmp => 0x02, in into()
276 Protocol::Tcp => 0x06, in into()
277 Protocol::Udp => 0x11, in into()
278 Protocol::Ipv6Route => 0x2b, in into()
279 Protocol::Ipv6Frag => 0x2c, in into()
280 Protocol::Icmpv6 => 0x3a, in into()
281 Protocol::Ipv6NoNxt => 0x3b, in into()
282 Protocol::Ipv6Opts => 0x3c, in into()
283 Protocol::Unknown(id) => id, in into()