fn line_bridge( log: LogSender, f: impl Fn(String) -> LogEvent + Send + 'static, ) -> UnboundedSender<String>
Creates a plain-string sender whose lines are mapped through f and forwarded to log. This lets run_cargo_build (which only knows about strings) feed into the structured LogSender without depending on LogEvent directly.
f
log
run_cargo_build
LogSender
LogEvent