[][src]Struct fuchsia_backtrace::OwnedDso

pub struct OwnedDso {
    pub name: String,
    pub build_id: Vec<u8>,
    // some fields omitted
}

Represents an ELF DSO (Dynamic Shared Object). This type owns its data but requires a copy/allocation in general.

Fields

name: String

The dynamic linker always gives us a name, even if the name is empty. In the case of the main executable this name will be empty. In the case of a shared object it will be the soname (see DT_SONAME).

build_id: Vec<u8>

On Fuchsia virtually all binaries have build IDs but this is not a strict requierment. There's no way to match up DSO information with a real ELF file afterwards if there is no build_id so we require that every DSO have one here. DSO's without a build_id are ignored.

Methods

impl OwnedDso[src]

Important traits for SegmentIter<'_>
pub fn segments(&self) -> SegmentIter[src]

Returns an iterator over Segments in this DSO.

Arguments

  • self - An OwnedDso.

Example

for seg in dso.segments() {
  handle_segment(seg);
}

Trait Implementations

impl<'a> From<Dso<'a>> for OwnedDso[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]