Struct symbolic_unreal::Unreal4Crash
source · [−]pub struct Unreal4Crash { /* private fields */ }
Expand description
Unreal Engine 4 crash file.
Implementations
sourceimpl Unreal4Crash
impl Unreal4Crash
sourcepub fn parse(slice: &[u8]) -> Result<Self, Unreal4Error>
pub fn parse(slice: &[u8]) -> Result<Self, Unreal4Error>
Parses a UE4 crash dump from the original, compressed data.
To prevent unbounded decompression, consider using
parse_with_limit
with an explicit limit, instead.
sourcepub fn parse_with_limit(
slice: &[u8],
limit: usize
) -> Result<Self, Unreal4Error>
pub fn parse_with_limit(
slice: &[u8],
limit: usize
) -> Result<Self, Unreal4Error>
Parses a UE4 crash dump from the original, compressed data up to a maximum size limit.
If files contained within the UE4 crash exceed the given size limit
, this function returns
Err
with Unreal4ErrorKind::TooLarge
.
sourcepub fn directory_name(&self) -> &str
pub fn directory_name(&self) -> &str
Returns the directory path of this UE4 crash.
sourcepub fn files(&self) -> Unreal4FileIterator<'_>ⓘNotable traits for Unreal4FileIterator<'_>impl Iterator for Unreal4FileIterator<'_> type Item = Unreal4File;
pub fn files(&self) -> Unreal4FileIterator<'_>ⓘNotable traits for Unreal4FileIterator<'_>impl Iterator for Unreal4FileIterator<'_> type Item = Unreal4File;
Returns an iterator over all files within this 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<Unreal4File>
pub fn file_by_index(&self, index: usize) -> Option<Unreal4File>
Returns the file at the given index.
sourcepub fn file_by_type(&self, ty: Unreal4FileType) -> Option<Unreal4File>
pub fn file_by_type(&self, ty: Unreal4FileType) -> Option<Unreal4File>
Returns a file by its type.
If there are multiple files matching the given type, the first match is returned.
sourcepub fn native_crash(&self) -> Option<Unreal4File>
pub fn native_crash(&self) -> Option<Unreal4File>
Returns the native crash report contained.
sourcepub fn context(&self) -> Result<Option<Unreal4Context>, Unreal4Error>
pub fn 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.
sourcepub fn logs(&self, limit: usize) -> Result<Vec<Unreal4LogEntry>, Unreal4Error>
pub fn logs(&self, limit: usize) -> Result<Vec<Unreal4LogEntry>, Unreal4Error>
Get up to limit
log entries of this crash.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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