fn plan_connector(
mode: SslMode,
sslrootcert: Option<&Path>,
ca_exists: impl Fn(&Path) -> bool,
) -> Result<ConnectorSpec, ConnectionError>Expand description
Plan the TLS setup for a connection from the resolved (mode, CA) inputs.
Pure: does no network I/O and — aside from the injected ca_exists
predicate — does no filesystem I/O. Returns a ConnectorSpec that
build_connector then materializes into a rustls connector.