[−][src]Struct symbolic_minidump::cfi::CfiCache
A cache file for call frame information (CFI).
The default way to use this cache is to construct it from an Object
and save it to a file.
Then, load it from the file and pass it to the minidump processor.
use std::fs::File; use symbolic_common::ByteView; use symbolic_debuginfo::Object; use symbolic_minidump::cfi::CfiCache; let view = ByteView::open("/path/to/object")?; let object = Object::parse(&view)?; let cache = CfiCache::from_object(&object)?; cache.write_to(File::create("my.cficache")?)?;
use symbolic_common::ByteView; use symbolic_minidump::cfi::CfiCache; let view = ByteView::open("my.cficache")?; let cache = CfiCache::from_bytes(view)?;
Methods
impl CfiCache<'static>
[src]
pub fn from_object(object: &Object) -> Result<Self, CfiError>
[src]
Construct a CFI cache from an Object
.
impl<'a> CfiCache<'a>
[src]
pub fn from_bytes(byteview: ByteView<'a>) -> Result<Self, CfiError>
[src]
Load a symcache from a ByteView
.
pub fn version(&self) -> u32
[src]
Returns the cache file format version.
pub fn as_slice(&self) -> &[u8]
[src]
Returns the raw buffer of the cache file.
pub fn write_to<W: Write>(&self, writer: W) -> Result<(), Error>
[src]
Writes the cache to the given writer.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.