Struct fuchsia_fuzzctl::Forwarder
source · pub struct Forwarder<O: OutputSink> { /* private fields */ }
Expand description
Compostion of SocketForwarder
s for standard output, standard errors, and system logs.
Implementations§
source§impl<O: OutputSink> Forwarder<O>
impl<O: OutputSink> Forwarder<O>
sourcepub fn new(writer: &Writer<O>) -> Self
pub fn new(writer: &Writer<O>) -> Self
Creates a Forwarder
that can forward data to the writer
.
Output will also be saved to the following files under the given logs_dir
directory:
- fuzzer.stdout.txt
- fuzzer.stderr.txt
- fuzzer.syslog.json
sourcepub fn set_output<P: AsRef<Path>>(
&mut self,
socket: Socket,
output: TestOutput,
logs_dir: &Option<P>
) -> Result<()>
pub fn set_output<P: AsRef<Path>>( &mut self, socket: Socket, output: TestOutput, logs_dir: &Option<P> ) -> Result<()>
Registers the provided output socket.
sourcepub async fn forward_all(&self) -> Result<()>
pub async fn forward_all(&self) -> Result<()>
Forwards output from the fuzzer to the Writer
using each of the SocketForwarder
s.