Lines Matching refs:Packet
10 use crate::wire::icmpv6::{field, Message, Packet};
40 impl<T: AsRef<[u8]>> Packet<T> { implementation
88 impl<T: AsRef<[u8]>> Packet<T> { implementation
101 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation
158 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation
318 pub fn parse<T>(packet: &Packet<&'a T>) -> Result<Repr<'a>> in parse()
349 pub fn emit<T>(&self, packet: &mut Packet<&mut T>) in emit()
445 let packet = Packet::new_unchecked(&QUERY_PACKET_BYTES[..]); in test_query_deconstruct()
464 let mut packet = Packet::new_unchecked(&mut bytes[..]); in test_query_construct()
486 let packet = Packet::new_unchecked(&REPORT_PACKET_BYTES[..]); in test_record_deconstruct()
505 let mut packet = Packet::new_unchecked(&mut bytes[..]); in test_record_construct()
529 let packet = Packet::new_unchecked(&QUERY_PACKET_BYTES[..]); in test_query_repr_parse()
541 let packet = Packet::new_unchecked(&REPORT_PACKET_BYTES[..]); in test_report_repr_parse()
554 let mut packet = Packet::new_unchecked(&mut bytes[..]); in test_query_repr_emit()
568 let mut packet = Packet::new_unchecked(&mut bytes[..]); in test_report_repr_emit()