pub fn with_addresses<R>(
source: Option<SocketAddr>,
local: Option<SocketAddr>,
work: impl FnOnce() -> R,
) -> RExpand description
Runs work with the connection’s addresses in scope: source is where the verifiers record
waiting entries and what a policy’s access control list decides by, and local the address
the connection arrived at, which the list needs for rules that name a destination or a port.
The accept helpers call this around the handshake; a host that drives rustls itself wraps
each call that can reach a verifier (for example process_new_packets). Outside it, entries
are recorded without a source.