#[non_exhaustive]
pub enum Source<'dat> { Apk(Apk), Breakpad(Breakpad), Elf(Elf), Kernel(Kernel), Process(Process), Gsym(Gsym<'dat>), }
Expand description

The description of a source of symbols and debug information.

The source of symbols and debug information can be an ELF file, kernel image, or process.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Apk(Apk)

Available on crate feature apk only.

A single APK file.

§

Breakpad(Breakpad)

Available on crate feature breakpad only.

A single Breakpad file.

§

Elf(Elf)

A single ELF file.

§

Kernel(Kernel)

Information about the Linux kernel.

§

Process(Process)

Information about a process.

§

Gsym(Gsym<'dat>)

Available on crate feature gsym only.

A Gsym file.

Trait Implementations§

source§

impl<'dat> Clone for Source<'dat>

source§

fn clone(&self) -> Source<'dat>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Source<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
source§

impl From<Apk> for Source<'static>

Available on crate feature apk only.
source§

fn from(apk: Apk) -> Self

Converts to this type from the input type.
source§

impl From<Breakpad> for Source<'static>

Available on crate feature breakpad only.
source§

fn from(breakpad: Breakpad) -> Self

Converts to this type from the input type.
source§

impl From<Elf> for Source<'static>

source§

fn from(elf: Elf) -> Self

Converts to this type from the input type.
source§

impl<'dat> From<Gsym<'dat>> for Source<'dat>

Available on crate feature gsym only.
source§

fn from(gsym: Gsym<'dat>) -> Self

Converts to this type from the input type.
source§

impl<'dat> From<GsymData<'dat>> for Source<'dat>

Available on crate feature gsym only.
source§

fn from(gsym: GsymData<'dat>) -> Self

Converts to this type from the input type.
source§

impl From<GsymFile> for Source<'static>

Available on crate feature gsym only.
source§

fn from(gsym: GsymFile) -> Self

Converts to this type from the input type.
source§

impl From<Kernel> for Source<'static>

source§

fn from(kernel: Kernel) -> Self

Converts to this type from the input type.
source§

impl From<Process> for Source<'static>

source§

fn from(process: Process) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'dat> RefUnwindSafe for Source<'dat>

§

impl<'dat> Send for Source<'dat>

§

impl<'dat> Sync for Source<'dat>

§

impl<'dat> Unpin for Source<'dat>

§

impl<'dat> UnwindSafe for Source<'dat>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.