pub struct PanicBuilder { /* private fields */ }Implementations§
Source§impl PanicBuilder
impl PanicBuilder
pub fn new(product_name: &str, service_name: &str) -> Self
pub fn log_to_file(self, enable: bool) -> Self
pub fn log_dir(self, log_dir: impl Into<PathBuf>) -> Self
pub fn bug_report(self, handler: Box<dyn BugReportHandler>) -> Self
pub fn http_bug_report(self, url: &str) -> Self
pub fn dingtalk_bug_report(self, dingtalk_url: &str) -> Self
pub fn disable_bug_report(self) -> Self
pub fn exit_on_panic(self, exit: bool) -> Self
pub fn build(self) -> PanicManager
Auto Trait Implementations§
impl Freeze for PanicBuilder
impl !RefUnwindSafe for PanicBuilder
impl Send for PanicBuilder
impl Sync for PanicBuilder
impl Unpin for PanicBuilder
impl !UnwindSafe for PanicBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more