Lines Matching refs:Box
26 fn cloned(&self) -> Box<dyn Packet + Send + Sync>; in cloned()
35 impl Clone for Box<dyn Packet + Send + Sync> { implementation
36 fn clone(&self) -> Box<dyn Packet + Send + Sync> { in clone()
42 pub fn marshal(packets: &[Box<dyn Packet + Send + Sync>]) -> Result<Bytes> { in marshal()
57 pub fn unmarshal<B>(raw_data: &mut B) -> Result<Vec<Box<dyn Packet + Send + Sync>>> in unmarshal()
79 pub(crate) fn unmarshaller<B>(raw_data: &mut B) -> Result<Box<dyn Packet + Send + Sync>> in unmarshaller()
92 let p: Box<dyn Packet + Send + Sync> = match h.packet_type { in unmarshaller()
93 PacketType::SenderReport => Box::new(SenderReport::unmarshal(&mut in_packet)?), in unmarshaller()
94 PacketType::ReceiverReport => Box::new(ReceiverReport::unmarshal(&mut in_packet)?), in unmarshaller()
95 PacketType::SourceDescription => Box::new(SourceDescription::unmarshal(&mut in_packet)?), in unmarshaller()
96 PacketType::Goodbye => Box::new(Goodbye::unmarshal(&mut in_packet)?), in unmarshaller()
99 FORMAT_TLN => Box::new(TransportLayerNack::unmarshal(&mut in_packet)?), in unmarshaller()
100 FORMAT_RRR => Box::new(RapidResynchronizationRequest::unmarshal(&mut in_packet)?), in unmarshaller()
101 FORMAT_TCC => Box::new(TransportLayerCc::unmarshal(&mut in_packet)?), in unmarshaller()
102 _ => Box::new(RawPacket::unmarshal(&mut in_packet)?), in unmarshaller()
105 FORMAT_PLI => Box::new(PictureLossIndication::unmarshal(&mut in_packet)?), in unmarshaller()
106 FORMAT_SLI => Box::new(SliceLossIndication::unmarshal(&mut in_packet)?), in unmarshaller()
107 FORMAT_REMB => Box::new(ReceiverEstimatedMaximumBitrate::unmarshal(&mut in_packet)?), in unmarshaller()
108 FORMAT_FIR => Box::new(FullIntraRequest::unmarshal(&mut in_packet)?), in unmarshaller()
109 _ => Box::new(RawPacket::unmarshal(&mut in_packet)?), in unmarshaller()
111 PacketType::ExtendedReport => Box::new(ExtendedReport::unmarshal(&mut in_packet)?), in unmarshaller()
112 _ => Box::new(RawPacket::unmarshal(&mut in_packet)?), in unmarshaller()
197 let expected: Vec<Box<dyn Packet + Send + Sync>> = vec![ in test_packet_unmarshal()
198 Box::new(a), in test_packet_unmarshal()
199 Box::new(b), in test_packet_unmarshal()
200 Box::new(c), in test_packet_unmarshal()
201 Box::new(d), in test_packet_unmarshal()
202 Box::new(e), in test_packet_unmarshal()