pub enum LogOutput {
Off,
Stream,
WriteToDir(PathBuf),
Both(PathBuf),
}Expand description
Controls where the simulation process output (stdout/stderr) is forwarded
when spawn_zephyr_rpc_server_with_socat is called.
§Variants
Off— no forwarding; processes write to/dev/nullor an internal buffer used only forTestProcesses::search_stdout_for_strings.Stream— forward all output to the caller’s terminal in real time, labelled per process (e.g.[rpc-server] …). Output goes to/dev/stderrdirectly so it bypassescargo testcapture.WriteToDir(path)— write each process’s output to a log file underpath(rpc-server.log,cgm.log,phy.log). The directory is created if it does not exist, and each log file is truncated at the start of every spawn so that stale output from a previous run is cleared.Both(path)— stream to the terminal AND write to files simultaneously.
Variants§
Off
No forwarding (default, silent).
Stream
Stream all process output to the terminal with [label] prefixes.
WriteToDir(PathBuf)
Write each process’s output to <path>/{rpc-server,cgm,phy}.log.
Log files are truncated on every spawn.
Both(PathBuf)
Stream to terminal AND write to files under path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogOutput
impl RefUnwindSafe for LogOutput
impl Send for LogOutput
impl Sync for LogOutput
impl Unpin for LogOutput
impl UnsafeUnpin for LogOutput
impl UnwindSafe for LogOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more