pub struct Input {
pub data: Vec<u8>,
/* private fields */
}
Expand description
Represents a sequence of bytes, paired with a fuchsia.fuzzer.Input
.
The fuchsia.fuzzer.Input
FIDL struct is used to transport test inputs and artifacts between
a target device running a fuzzer and a development host running the ffx fuzz
plugin. This
struct and that FIDL struct are created in pairs. The FIDL struct can be sent to the target
device, and this struct can be used to transmit the actual test input data to the target
device.
Fields§
§data: Vec<u8>
The received data
Implementations§
Source§impl Input
impl Input
Sourcepub async fn send(self) -> Result<()>
pub async fn send(self) -> Result<()>
Writes the object’s data to its internal socket.
This will deliver the data to the fuchsia.fuzzer.Input
created with this object.
Sourcepub async fn try_receive(fidl_input: FidlInput) -> Result<Self>
pub async fn try_receive(fidl_input: FidlInput) -> Result<Self>
Reads the object’s data from a FidlInput
.
Returns an error if unable to read from the underlying socket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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