struct Cache {
libraries: Vec<Library>,
mappings: Lru<(usize, Mapping), MAPPINGS_CACHE_SIZE>,
}
Fields§
§libraries: Vec<Library>
All known shared libraries that have been loaded.
mappings: Lru<(usize, Mapping), MAPPINGS_CACHE_SIZE>
Mappings cache where we retain parsed dwarf information.
This list has a fixed capacity for its entire lifetime which never
increases. The usize
element of each pair is an index into libraries
above where usize::max_value()
represents the current executable. The
Mapping
is corresponding parsed dwarf information.
Note that this is basically an LRU cache and we’ll be shifting things around in here as we symbolize addresses.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Cache
impl !RefUnwindSafe for Cache
impl !Send for Cache
impl !Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more