findshlibs::unsupported

Struct SharedLibrary

Source
pub struct SharedLibrary<'a> { /* private fields */ }
Expand description

The fallback implementation of the SharedLibrary trait.

Trait Implementations§

Source§

impl<'a> Debug for SharedLibrary<'a>

Source§

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

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

impl<'a> SharedLibrary for SharedLibrary<'a>

Source§

type Segment = Segment<'a>

The associated segment type for this shared library.
Source§

type SegmentIter = SegmentIter<'a>

An iterator over a shared library’s segments.
Source§

fn name(&self) -> &OsStr

Get the name of this shared library.
Source§

fn id(&self) -> Option<SharedLibraryId>

Get the code-id of this shared library if available.
Source§

fn segments(&self) -> Self::SegmentIter

Iterate over this shared library’s segments.
Source§

fn virtual_memory_bias(&self) -> Bias

Get the bias of this shared library. Read more
Source§

fn each<F, C>(_f: F)
where F: FnMut(&Self) -> C, C: Into<IterationControl>,

Find all shared libraries in this process and invoke f with each one.
Source§

fn debug_name(&self) -> Option<&OsStr>

Get the name of the debug file with this shared library if there is one.
Source§

fn debug_id(&self) -> Option<SharedLibraryId>

Get the debug-id of this shared library if available.
Source§

fn actual_load_addr(&self) -> Avma

Returns the address of where the library is loaded into virtual memory. Read more
Source§

fn stated_load_addr(&self) -> Svma

Returns the address of where the library prefers to be loaded into virtual memory. Read more
Source§

fn len(&self) -> usize

Returns the size of the image. Read more
Source§

fn avma_to_svma(&self, address: Avma) -> Svma

Given an AVMA within this shared library, convert it back to an SVMA by removing this shared library’s bias.

Auto Trait Implementations§

§

impl<'a> Freeze for SharedLibrary<'a>

§

impl<'a> RefUnwindSafe for SharedLibrary<'a>

§

impl<'a> Send for SharedLibrary<'a>

§

impl<'a> Sync for SharedLibrary<'a>

§

impl<'a> Unpin for SharedLibrary<'a>

§

impl<'a> UnwindSafe for SharedLibrary<'a>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.