Struct fuchsia_fuzzctl::Artifact
source · pub struct Artifact {
pub result: FuzzResult,
pub path: Option<PathBuf>,
pub status: Status,
}
Expand description
Combines the results of a long-running fuzzer workflow.
Fields§
§result: FuzzResult
If status
is OK, indicates the outcome of the workflow; otherwise undefined.
path: Option<PathBuf>
The path to which the fuzzer input, if any, has been saved.
status: Status
Indicates an error encountered by the engine itself, or zx::Status::OK
.
Implementations§
source§impl Artifact
impl Artifact
sourcepub fn ok() -> Self
pub fn ok() -> Self
Returns an artifact for a workflow that completed without producing results or data.
sourcepub fn canceled() -> Self
pub fn canceled() -> Self
Returns an artifact for a workflow that was canceled before completing.
sourcepub fn from_result(result: FuzzResult) -> Self
pub fn from_result(result: FuzzResult) -> Self
Returns an artifact for a workflow that produced a result without data.
sourcepub async fn try_from_input<P: AsRef<Path>>(
result: FuzzResult,
fidl_input: FidlInput,
artifact_dir: P
) -> Result<Self>
pub async fn try_from_input<P: AsRef<Path>>( result: FuzzResult, fidl_input: FidlInput, artifact_dir: P ) -> Result<Self>
Returns an artifact for a workflow that produced results and data.
This will attempt to receive the data and save it locally, and return an error if unable to do so.