pub struct ObjectFile { /* private fields */ }
Implementations§
Source§impl ObjectFile
impl ObjectFile
pub fn new(path: &Path) -> Result<Self>
Sourcepub fn id(&self) -> Result<ExecutableId>
pub fn id(&self) -> Result<ExecutableId>
Returns an identifier for the executable using the first 8 bytes of the Sha256 of the code section.
Sourcepub fn build_id(&self) -> Result<BuildId>
pub fn build_id(&self) -> Result<BuildId>
Returns the executable build ID if present. If no GNU build ID and no Go build ID are found it returns the hash of the text section.
pub fn is_dynamic(&self) -> bool
pub fn is_go(&self) -> bool
pub fn elf_load_segments(&self) -> Result<Vec<ElfLoad>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectFile
impl RefUnwindSafe for ObjectFile
impl Send for ObjectFile
impl Sync for ObjectFile
impl Unpin for ObjectFile
impl UnwindSafe for ObjectFile
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