Struct sentry_panic::PanicIntegration
source · [−]pub struct PanicIntegration { /* private fields */ }
Expand description
The Sentry Panic handler Integration.
Implementations
sourceimpl PanicIntegration
impl PanicIntegration
sourcepub fn add_extractor<F>(self, f: F) -> Self where
F: Fn(&PanicInfo<'_>) -> Option<Event<'static>> + Send + Sync + 'static,
pub fn add_extractor<F>(self, f: F) -> Self where
F: Fn(&PanicInfo<'_>) -> Option<Event<'static>> + Send + Sync + 'static,
Registers a new extractor.
sourcepub fn event_from_panic_info(&self, info: &PanicInfo<'_>) -> Event<'static>
pub fn event_from_panic_info(&self, info: &PanicInfo<'_>) -> Event<'static>
Creates an event from the given panic info.
The stacktrace is calculated from the current frame.
Trait Implementations
sourceimpl Debug for PanicIntegration
impl Debug for PanicIntegration
sourceimpl Default for PanicIntegration
impl Default for PanicIntegration
sourcefn default() -> PanicIntegration
fn default() -> PanicIntegration
Returns the “default value” for a type. Read more
sourceimpl Integration for PanicIntegration
impl Integration for PanicIntegration
sourcefn setup(&self, _cfg: &mut ClientOptions)
fn setup(&self, _cfg: &mut ClientOptions)
Called whenever the integration is attached to a Client.
sourcefn process_event(
&self,
event: Event<'static>,
options: &ClientOptions
) -> Option<Event<'static>>
fn process_event(
&self,
event: Event<'static>,
options: &ClientOptions
) -> Option<Event<'static>>
The Integrations Event Processor Hook. Read more
Auto Trait Implementations
impl !RefUnwindSafe for PanicIntegration
impl Send for PanicIntegration
impl Sync for PanicIntegration
impl Unpin for PanicIntegration
impl !UnwindSafe for PanicIntegration
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