pub struct CapturedError {
pub timestamp: String,
pub context: String,
pub url: Option<String>,
pub error_type: String,
pub message: String,
}Expand description
A captured error event stored in the report.
Fields§
§timestamp: String§context: String§url: Option<String>§error_type: String§message: StringImplementations§
Source§impl CapturedError
impl CapturedError
pub fn new( context: impl Into<String>, url: Option<String>, err: &dyn Error, ) -> Self
pub fn from_str( context: impl Into<String>, url: Option<String>, msg: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for CapturedError
impl Clone for CapturedError
Source§fn clone(&self) -> CapturedError
fn clone(&self) -> CapturedError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapturedError
impl Debug for CapturedError
Source§impl Display for CapturedError
impl Display for CapturedError
Source§impl From<&CapturedError> for CapturedErrorRecord
impl From<&CapturedError> for CapturedErrorRecord
Source§fn from(e: &CapturedError) -> Self
fn from(e: &CapturedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CapturedError
impl RefUnwindSafe for CapturedError
impl Send for CapturedError
impl Sync for CapturedError
impl Unpin for CapturedError
impl UnsafeUnpin for CapturedError
impl UnwindSafe for CapturedError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.