pub struct PatchRecord {
pub address: Address,
pub strategy: String,
pub kind: FindingKind,
pub confidence: Confidence,
pub original_bytes_hex: String,
pub patched_bytes_hex: String,
pub rationale: String,
}Expand description
One byte-level patch operation as recorded in a PatchManifest.
Fields§
§address: AddressAddress of the patched instruction.
strategy: StringStrategy name (matches r2smt-report::PatchStrategy::as_str).
kind: FindingKindFinding kind that motivated the patch.
confidence: ConfidenceConfidence at which the patch was committed.
original_bytes_hex: StringLowercase hex of the bytes present at address before the
patch was applied. Rollback restores these.
patched_bytes_hex: StringLowercase hex of the bytes the patch wrote at address.
rationale: StringHuman-readable explanation forwarded from the suggestion engine.
Implementations§
Source§impl PatchRecord
impl PatchRecord
Sourcepub fn original_bytes(&self) -> Result<Vec<u8>>
pub fn original_bytes(&self) -> Result<Vec<u8>>
Sourcepub fn patched_bytes(&self) -> Result<Vec<u8>>
pub fn patched_bytes(&self) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for PatchRecord
impl Clone for PatchRecord
Source§fn clone(&self) -> PatchRecord
fn clone(&self) -> PatchRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchRecord
impl Debug for PatchRecord
Source§impl<'de> Deserialize<'de> for PatchRecord
impl<'de> Deserialize<'de> for PatchRecord
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
impl Eq for PatchRecord
Source§impl PartialEq for PatchRecord
impl PartialEq for PatchRecord
Source§impl Serialize for PatchRecord
impl Serialize for PatchRecord
impl StructuralPartialEq for PatchRecord
Auto Trait Implementations§
impl Freeze for PatchRecord
impl RefUnwindSafe for PatchRecord
impl Send for PatchRecord
impl Sync for PatchRecord
impl Unpin for PatchRecord
impl UnsafeUnpin for PatchRecord
impl UnwindSafe for PatchRecord
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