Struct panik::Builder[][src]

pub struct Builder { /* fields omitted */ }

Builder for panic handling configuration.

Implementations

impl Builder[src]

pub fn new() -> Self[src]

pub fn backtrace_resolution_limit(mut self: Self, n: usize) -> Self[src]

Sets the limit on backtraces to resolve. Defaults to 8.

Useful in the case where there are many threads panicking with the same reason, and it can take a long time to resolve them all.

pub fn run_and_handle_panics<R: Debug>(
    mut self: Self,
    do_me: impl FnOnce() -> R + UnwindSafe
) -> Option<R>
[src]

pub fn run_and_handle_panics_no_debug<R>(
    mut self: Self,
    do_me: impl FnOnce() -> R + UnwindSafe
) -> Option<R>
[src]

Trait Implementations

impl Clone for Builder[src]

impl Default for Builder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.