Lines Matching refs:Packet
250 pub struct Packet<T: AsRef<[u8]>> { struct
269 impl<T: AsRef<[u8]>> Packet<T> { implementation
364 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation
381 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation
416 pub fn parse<T: AsRef<[u8]>>(packet: &Packet<T>) -> Result<Self> { in parse()
440 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut Packet<T>) { in emit()
539 pub struct Packet<T: AsRef<[u8]>> { struct
543 impl<T: AsRef<[u8]>> Packet<T> { implementation
546 Packet { buffer } in new_unchecked()
908 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation
925 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation
1168 packet: &Packet<&T>, in parse()
1295 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut Packet<T>) { in emit()
1321 let packet = Packet::new_unchecked(bytes); in iphc_fields()
1357 let packet = Packet::new_unchecked(bytes); in iphc_fields()
2134 let mut packet = frag::Packet::new_unchecked(buffer); in sixlowpan_fragment_emit()
2149 let mut packet = frag::Packet::new_unchecked(buffer); in sixlowpan_fragment_emit()
2191 frag::Packet::new_checked(ieee802154_frame.payload().unwrap()).unwrap() in sixlowpan_three_fragments()
2221 frag::Packet::new_checked(ieee802154_frame.payload().unwrap()).unwrap() in sixlowpan_three_fragments()
2250 frag::Packet::new_checked(ieee802154_frame.payload().unwrap()).unwrap() in sixlowpan_three_fragments()