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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more