Struct cyfs_debug::PanicBuilder
source · pub struct PanicBuilder { /* private fields */ }Implementations
sourceimpl 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 exit_on_panic(self, exit: bool) -> Self
pub fn build(self) -> PanicManager
Auto Trait Implementations
impl !RefUnwindSafe for PanicBuilder
impl Send for PanicBuilder
impl Sync for PanicBuilder
impl Unpin for PanicBuilder
impl !UnwindSafe for PanicBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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