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.
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for Forwarder<O>where
O: Freeze,
impl<O> !RefUnwindSafe for Forwarder<O>
impl<O> !Send for Forwarder<O>
impl<O> !Sync for Forwarder<O>
impl<O> Unpin for Forwarder<O>where
O: Unpin,
impl<O> !UnwindSafe for Forwarder<O>
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