pub struct Discovery {
pub target: Address,
pub kind: DiscoveryKind,
pub name: Option<String>,
pub source_function: Option<Address>,
pub source_block: Option<Address>,
pub source_addr: Option<Address>,
pub provenance: DiscoveryProvenance,
}Expand description
A code address discovered but not yet lifted.
Fields§
§target: Address§kind: DiscoveryKind§name: Option<String>Symbol-name hint for the discovered code, when known.
source_function: Option<Address>Stable source metadata. These are addresses so the item can move between clean and optimized contexts.
source_block: Option<Address>§source_addr: Option<Address>§provenance: DiscoveryProvenanceImplementations§
Source§impl Discovery
impl Discovery
pub fn function(target: Address) -> Self
pub fn entry(target: Address) -> Self
pub fn block(target: Address, function: Address) -> Self
pub fn key(&self) -> DiscoveryKey
pub fn with_name(self, name: Option<String>) -> Self
pub fn from_addr(self, addr: Address) -> Self
pub fn from_block_addr(self, addr: Address) -> Self
pub fn with_edge_kind(self, edge_kind: EdgeKind) -> Self
pub fn with_function_reason(self, reason: FunctionDiscoveryReason) -> Self
pub fn with_provenance(self, provenance: DiscoveryProvenance) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Discovery
impl<'de> Deserialize<'de> for Discovery
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 Discovery
impl StructuralPartialEq for Discovery
Auto Trait Implementations§
impl Freeze for Discovery
impl RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
impl UnwindSafe for Discovery
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