pub struct ExecutionResult {
pub observations: Vec<Observation>,
pub scripts_executed: usize,
pub errors: Vec<String>,
pub duration_us: u64,
pub timed_out: bool,
}Expand description
The result of executing JavaScript in the sandbox.
Fields§
§observations: Vec<Observation>All observations collected during execution, in order.
scripts_executed: usizeNumber of scripts that executed (including those that errored).
errors: Vec<String>Errors encountered during execution.
duration_us: u64Total wall-clock time in microseconds.
timed_out: boolWhether execution was terminated by a resource limit.
Trait Implementations§
Source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
Source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionResult
impl Debug for ExecutionResult
Source§impl ToVulnIR for ExecutionResult
impl ToVulnIR for ExecutionResult
Source§fn to_vulnir_graph(&self) -> VulnIRGraph<VulnNode, VulnEdge>
fn to_vulnir_graph(&self) -> VulnIRGraph<VulnNode, VulnEdge>
Converts this execution result to a VulnIR graph. Read more
Source§fn to_vulnir_graph_with_producer(
&self,
producer: &JsdetProducer,
) -> VulnIRGraph<VulnNode, VulnEdge>
fn to_vulnir_graph_with_producer( &self, producer: &JsdetProducer, ) -> VulnIRGraph<VulnNode, VulnEdge>
Converts this execution result to a VulnIR graph with a custom producer.
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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