2626
2727use crate :: Bytes ;
2828use crate :: Token ;
29- use http:: h3:: * ;
3029use http:: h3;
30+ use http:: h3:: * ;
3131use quic:: connectivity;
3232use quic:: connectivity:: * ;
3333use quic:: quic:: * ;
34- use quic:: recovery:: * ;
3534use quic:: recovery;
35+ use quic:: recovery:: * ;
3636use quic:: security;
3737
3838use serde:: Deserialize ;
@@ -44,7 +44,8 @@ pub type ExData = BTreeMap<String, serde_json::Value>;
4444
4545pub const LOGLEVEL_URI : & str = "urn:ietf:params:qlog:events:gen#loglevel-09" ;
4646
47- pub const CONNECTIVITY_URI : & str = "urn:ietf:params:qlog:events:quic#connectivity-08" ;
47+ pub const CONNECTIVITY_URI : & str =
48+ "urn:ietf:params:qlog:events:quic#connectivity-08" ;
4849pub const SECURITY_URI : & str = "urn:ietf:params:qlog:events:quic#security-08" ;
4950pub const QUIC_URI : & str = "urn:ietf:params:qlog:events:quic#quic-08" ;
5051pub const RECOVERY_URI : & str = "urn:ietf:params:qlog:events:quic#recovery-08" ;
@@ -236,25 +237,20 @@ impl From<EventType> for EventImportance {
236237 EventType :: SecurityEventType ( SecurityEventType :: KeyDiscarded ) =>
237238 EventImportance :: Base ,
238239
239- EventType :: QuicEventType (
240- QuicEventType :: VersionInformation ,
241- ) => EventImportance :: Core ,
242- EventType :: QuicEventType (
243- QuicEventType :: AlpnInformation ,
244- ) => EventImportance :: Core ,
240+ EventType :: QuicEventType ( QuicEventType :: VersionInformation ) =>
241+ EventImportance :: Core ,
242+ EventType :: QuicEventType ( QuicEventType :: AlpnInformation ) =>
243+ EventImportance :: Core ,
245244 EventType :: QuicEventType ( QuicEventType :: ParametersSet ) =>
246245 EventImportance :: Core ,
247- EventType :: QuicEventType (
248- QuicEventType :: ParametersRestored ,
249- ) => EventImportance :: Base ,
250- EventType :: QuicEventType (
251- QuicEventType :: UdpDatagramsReceived ,
252- ) => EventImportance :: Extra ,
246+ EventType :: QuicEventType ( QuicEventType :: ParametersRestored ) =>
247+ EventImportance :: Base ,
248+ EventType :: QuicEventType ( QuicEventType :: UdpDatagramsReceived ) =>
249+ EventImportance :: Extra ,
253250 EventType :: QuicEventType ( QuicEventType :: UdpDatagramsSent ) =>
254251 EventImportance :: Extra ,
255- EventType :: QuicEventType (
256- QuicEventType :: UdpDatagramDropped ,
257- ) => EventImportance :: Extra ,
252+ EventType :: QuicEventType ( QuicEventType :: UdpDatagramDropped ) =>
253+ EventImportance :: Extra ,
258254 EventType :: QuicEventType ( QuicEventType :: PacketReceived ) =>
259255 EventImportance :: Core ,
260256 EventType :: QuicEventType ( QuicEventType :: PacketSent ) =>
@@ -265,12 +261,10 @@ impl From<EventType> for EventImportance {
265261 EventImportance :: Base ,
266262 EventType :: QuicEventType ( QuicEventType :: PacketsAcked ) =>
267263 EventImportance :: Extra ,
268- EventType :: QuicEventType (
269- QuicEventType :: StreamStateUpdated ,
270- ) => EventImportance :: Base ,
271- EventType :: QuicEventType (
272- QuicEventType :: FramesProcessed ,
273- ) => EventImportance :: Extra ,
264+ EventType :: QuicEventType ( QuicEventType :: StreamStateUpdated ) =>
265+ EventImportance :: Base ,
266+ EventType :: QuicEventType ( QuicEventType :: FramesProcessed ) =>
267+ EventImportance :: Extra ,
274268 EventType :: QuicEventType ( QuicEventType :: StreamDataMoved ) =>
275269 EventImportance :: Base ,
276270 EventType :: QuicEventType ( QuicEventType :: DatagramDataMoved ) =>
@@ -396,7 +390,7 @@ impl From<&EventData> for EventType {
396390 ) ,
397391 EventData :: PathAssigned { .. } => EventType :: ConnectivityEventType (
398392 ConnectivityEventType :: PathAssigned ,
399- ) ,
393+ ) ,
400394 EventData :: MtuUpdated { .. } => EventType :: ConnectivityEventType (
401395 ConnectivityEventType :: MtuUpdated ,
402396 ) ,
@@ -407,20 +401,15 @@ impl From<&EventData> for EventType {
407401 EventType :: SecurityEventType ( SecurityEventType :: KeyDiscarded ) ,
408402
409403 EventData :: VersionInformation { .. } =>
410- EventType :: QuicEventType (
411- QuicEventType :: VersionInformation ,
412- ) ,
404+ EventType :: QuicEventType ( QuicEventType :: VersionInformation ) ,
413405 EventData :: AlpnInformation { .. } =>
414406 EventType :: QuicEventType ( QuicEventType :: AlpnInformation ) ,
415407 EventData :: ParametersSet { .. } =>
416408 EventType :: QuicEventType ( QuicEventType :: ParametersSet ) ,
417409 EventData :: ParametersRestored { .. } =>
418- EventType :: QuicEventType (
419- QuicEventType :: ParametersRestored ,
420- ) ,
421- EventData :: UdpDatagramsReceived { .. } => EventType :: QuicEventType (
422- QuicEventType :: UdpDatagramsReceived ,
423- ) ,
410+ EventType :: QuicEventType ( QuicEventType :: ParametersRestored ) ,
411+ EventData :: UdpDatagramsReceived { .. } =>
412+ EventType :: QuicEventType ( QuicEventType :: UdpDatagramsReceived ) ,
424413 EventData :: UdpDatagramsSent { .. } =>
425414 EventType :: QuicEventType ( QuicEventType :: UdpDatagramsSent ) ,
426415 EventData :: UdpDatagramDropped { .. } =>
@@ -436,9 +425,7 @@ impl From<&EventData> for EventType {
436425 EventData :: PacketsAcked { .. } =>
437426 EventType :: QuicEventType ( QuicEventType :: PacketsAcked ) ,
438427 EventData :: StreamStateUpdated { .. } =>
439- EventType :: QuicEventType (
440- QuicEventType :: StreamStateUpdated ,
441- ) ,
428+ EventType :: QuicEventType ( QuicEventType :: StreamStateUpdated ) ,
442429 EventData :: FramesProcessed { .. } =>
443430 EventType :: QuicEventType ( QuicEventType :: FramesProcessed ) ,
444431 EventData :: StreamDataMoved { .. } =>
@@ -734,5 +721,5 @@ pub struct PathEndpointInfo {
734721 pub connection_ids : Vec < Bytes > ,
735722}
736723
724+ pub mod http;
737725pub mod quic;
738- pub mod http;
0 commit comments