pub trait QlogFactory:
Send
+ Sync
+ 'static {
// Required method
fn for_connection(
&self,
side: Side,
remote: SocketAddr,
initial_dst_cid: ConnectionId,
now: Instant,
) -> Option<QlogConfig>;
}Expand description
Constructs a QlogConfig for individual connections.
This is set via [TransportConfig::qlog_factory].
Required Methods§
Sourcefn for_connection(
&self,
side: Side,
remote: SocketAddr,
initial_dst_cid: ConnectionId,
now: Instant,
) -> Option<QlogConfig>
fn for_connection( &self, side: Side, remote: SocketAddr, initial_dst_cid: ConnectionId, now: Instant, ) -> Option<QlogConfig>
Returns a QlogConfig for a connection, if logging should be enabled.
If None is returned, qlog capture is disabled for the connection.