pub struct TracingResult {
pub retriggers: HashSet<(Address, AddressStorageLocation)>,
pub accessed_slots: HashMap<Address, HashSet<StoreKey>>,
}Fields§
§retriggers: HashSet<(Address, AddressStorageLocation)>A set of (address, storage slot) pairs representing state that contain a called address. If any of these storage slots change, the execution path might change.
accessed_slots: HashMap<Address, HashSet<StoreKey>>A map of all addresses that were called during the trace with a list of storage slots that were accessed.
Implementations§
Source§impl TracingResult
impl TracingResult
pub fn new( retriggers: HashSet<(Address, AddressStorageLocation)>, accessed_slots: HashMap<Address, HashSet<StoreKey>>, ) -> Self
Sourcepub fn merge(&mut self, other: TracingResult)
pub fn merge(&mut self, other: TracingResult)
Merges this tracing result with another one.
The method combines two TracingResult instances.
Trait Implementations§
Source§impl Clone for TracingResult
impl Clone for TracingResult
Source§fn clone(&self) -> TracingResult
fn clone(&self) -> TracingResult
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 TracingResult
impl Debug for TracingResult
Source§impl DeepSizeOf for TracingResult
impl DeepSizeOf for TracingResult
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl Default for TracingResult
impl Default for TracingResult
Source§fn default() -> TracingResult
fn default() -> TracingResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TracingResult
impl<'de> Deserialize<'de> for TracingResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TracingResult> for TracingResult
impl From<TracingResult> for TracingResult
Source§fn from(value: TracingResult) -> Self
fn from(value: TracingResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TracingResult
impl PartialEq for TracingResult
Source§impl Serialize for TracingResult
impl Serialize for TracingResult
impl StructuralPartialEq for TracingResult
Auto Trait Implementations§
impl Freeze for TracingResult
impl RefUnwindSafe for TracingResult
impl Send for TracingResult
impl Sync for TracingResult
impl Unpin for TracingResult
impl UnwindSafe for TracingResult
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