Struct sentry::integrations::panic::PanicIntegration
source · [−]pub struct PanicIntegration { /* private fields */ }
Expand description
The Sentry Panic handler Integration.
Implementations
sourceimpl PanicIntegration
impl PanicIntegration
sourcepub fn new() -> PanicIntegration
pub fn new() -> PanicIntegration
Creates a new Panic Integration.
sourcepub fn add_extractor<F>(self, f: F) -> PanicIntegration where
F: 'static + Fn(&PanicInfo<'_>) -> Option<Event<'static>> + Send + Sync,
pub fn add_extractor<F>(self, f: F) -> PanicIntegration where
F: 'static + Fn(&PanicInfo<'_>) -> Option<Event<'static>> + Send + Sync,
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more