pub struct Artifact {
pub result: Option<Result_>,
pub input: Option<Input>,
pub error: Option<i32>,
/* private fields */
}
Expand description
Encapsulates the result of a long-running fuzzing workflow and optionally the input that caused it, depending on the workflow.
Fields§
§result: Option<Result_>
Result of executing the long-running workflow.
input: Option<Input>
Optional fuzzer input produced by a specific long-running workflow. This may be:
- A discovered input in the case of
Fuzz
- A constructed input in the cases of
Cleanse
andMinimize
. - Omitted in the cases of
TryOne
andMerge
.
error: Option<i32>
An error generated during a long-running workflow. These errors are distinct from those that result from validating workflow requests and are documented for the workflow methods below. These errors result from unexpected framework failure. For example, if libFuzzer fails due to an internal error, the engine will report it via this field.
The result
and input
fields are invalid if this field is present and
anything other than ZX_OK
.
Trait Implementations§
Source§impl Decode<Artifact, DefaultFuchsiaResourceDialect> for Artifact
impl Decode<Artifact, DefaultFuchsiaResourceDialect> for Artifact
Source§impl ResourceTypeMarker for Artifact
impl ResourceTypeMarker for Artifact
Source§type Borrowed<'a> = &'a mut Artifact
type Borrowed<'a> = &'a mut Artifact
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for Artifact
impl TypeMarker for Artifact
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
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