Skip to main content

line_bridge

Function line_bridge 

Source
fn line_bridge(
    log: LogSender,
    f: impl Fn(String) -> LogEvent + Send + 'static,
) -> UnboundedSender<String>
Expand description

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.