Struct symbolic_unreal::Unreal4Crash
source · pub struct Unreal4Crash { /* private fields */ }
Expand description
Unreal Engine 4 crash file.
Implementations
sourceimpl Unreal4Crash
impl Unreal4Crash
sourcepub fn from_slice(bytes: &[u8]) -> Result<Unreal4Crash, Unreal4Error>
pub fn from_slice(bytes: &[u8]) -> Result<Unreal4Crash, Unreal4Error>
Creates an instance of Unreal4Crash
from the original, compressed bytes.
sourcepub fn files(&self) -> impl Iterator<Item = &Unreal4CrashFile>
pub fn files(&self) -> impl Iterator<Item = &Unreal4CrashFile>
Files within the UE4 crash dump.
sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
Count of files within the UE4 crash dump.
sourcepub fn file_by_index(&self, index: usize) -> Option<&Unreal4CrashFile>
pub fn file_by_index(&self, index: usize) -> Option<&Unreal4CrashFile>
Get a Unreal4CrashFile
by its index.
sourcepub fn file_contents_by_index(
&self,
index: usize
) -> Result<Option<&[u8]>, Unreal4Error>
pub fn file_contents_by_index(
&self,
index: usize
) -> Result<Option<&[u8]>, Unreal4Error>
Get the contents of a file by its index.
sourcepub fn get_minidump_slice(&self) -> Result<Option<&[u8]>, Unreal4Error>
pub fn get_minidump_slice(&self) -> Result<Option<&[u8]>, Unreal4Error>
Get the Minidump file bytes.
sourcepub fn get_file_slice(
&self,
file_type: Unreal4FileType
) -> Result<Option<&[u8]>, Unreal4Error>
pub fn get_file_slice(
&self,
file_type: Unreal4FileType
) -> Result<Option<&[u8]>, Unreal4Error>
Get the file contents by its file type.
sourcepub fn get_file_contents(
&self,
file_meta: &Unreal4CrashFile
) -> Result<&[u8], Unreal4Error>
pub fn get_file_contents(
&self,
file_meta: &Unreal4CrashFile
) -> Result<&[u8], Unreal4Error>
Get file content.
sourcepub fn get_context(&self) -> Result<Option<Unreal4Context>, Unreal4Error>
pub fn get_context(&self) -> Result<Option<Unreal4Context>, Unreal4Error>
Get the Unreal4Context
of this crash.
This is achieved by reading the context (xml) file
If the file doesn’t exist in the crash, None
is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Unreal4Crash
impl Send for Unreal4Crash
impl Sync for Unreal4Crash
impl Unpin for Unreal4Crash
impl UnwindSafe for Unreal4Crash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more