Struct symbolic::unreal::Unreal4LogEntry
source · pub struct Unreal4LogEntry {
pub timestamp: Option<OffsetDateTime>,
pub component: Option<String>,
pub message: String,
}
Expand description
A log entry from an Unreal Engine 4 crash.
Fields§
§timestamp: Option<OffsetDateTime>
The timestamp of the message, when available.
component: Option<String>
The component that issued the log, when available.
message: String
The log message.
Implementations§
source§impl Unreal4LogEntry
impl Unreal4LogEntry
sourcepub fn parse(
log_slice: &[u8],
limit: usize
) -> Result<Vec<Unreal4LogEntry>, Unreal4Error>
pub fn parse( log_slice: &[u8], limit: usize ) -> Result<Vec<Unreal4LogEntry>, Unreal4Error>
Tries to parse a blob normally coming from a logs file inside an Unreal4Crash into a vector of Unreal4LogEntry.
Trait Implementations§
source§impl Serialize for Unreal4LogEntry
impl Serialize for Unreal4LogEntry
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Unreal4LogEntry
impl Send for Unreal4LogEntry
impl Sync for Unreal4LogEntry
impl Unpin for Unreal4LogEntry
impl UnwindSafe for Unreal4LogEntry
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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more