QlogFactory

Trait QlogFactory 

Source
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§

Source

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.

Implementors§