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.
Auto Trait Implementations§
impl Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
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