Struct fuchsia_fuzzctl::Manager
source · pub struct Manager { /* private fields */ }
Expand description
Represents the FIDL connection from the ffx fuzz
plugin to the fuzz-manager
component on a
target device.
Implementations§
source§impl Manager
impl Manager
sourcepub fn new(proxy: ManagerProxy) -> Self
pub fn new(proxy: ManagerProxy) -> Self
Creates a new Manager
.
The created object maintains a FIDL proxy
to the fuzz-manager
component on a target
device. Any output produced by this object will be written using the given writer
.
sourcepub async fn connect(&self, url: &Url) -> Result<ControllerProxy>
pub async fn connect(&self, url: &Url) -> Result<ControllerProxy>
Requests that the fuzz-manager
connect to a fuzzer instance.
This will create and connect a fuchsia.fuzzer.Controller
to the fuzzer on the target
device given by the url
. Any artifacts produced by the fuzzer will be saved to the
artifact_dir
, and outputs such as logs can optionally be saved to the output_dir
.
Returns an object representing the connected fuzzer, or an error.
sourcepub async fn get_output(&self, url: &Url, output: TestOutput) -> Result<Socket>
pub async fn get_output(&self, url: &Url, output: TestOutput) -> Result<Socket>
Returns a socket that provides the given type of fuzzer output.