pub struct PanicHookConfig {
pub app_name: String,
pub version: String,
pub repository: String,
pub crash_log_path: PathBuf,
pub issue_template: String,
}Expand description
Configuration used by the shared panic hook.
Fields§
§app_name: StringHuman-facing service name shown in crash reports.
version: StringService version shown in crash reports.
repository: StringRepository URL used to build issue-report targets.
crash_log_path: PathBufPath to the crash log file.
issue_template: StringRepository-relative issue template path.
Implementations§
Source§impl PanicHookConfig
impl PanicHookConfig
Sourcepub fn new(
app_name: impl Into<String>,
version: impl Into<String>,
repository: impl Into<String>,
) -> Self
pub fn new( app_name: impl Into<String>, version: impl Into<String>, repository: impl Into<String>, ) -> Self
Creates a panic hook config with Aster defaults for path and issue template.
Sourcepub fn with_crash_log_path(self, crash_log_path: impl Into<PathBuf>) -> Self
pub fn with_crash_log_path(self, crash_log_path: impl Into<PathBuf>) -> Self
Overrides the crash log path.
Sourcepub fn with_issue_template(self, issue_template: impl Into<String>) -> Self
pub fn with_issue_template(self, issue_template: impl Into<String>) -> Self
Overrides the repository-relative issue template path.
Trait Implementations§
Source§impl Clone for PanicHookConfig
impl Clone for PanicHookConfig
Source§fn clone(&self) -> PanicHookConfig
fn clone(&self) -> PanicHookConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PanicHookConfig
impl Debug for PanicHookConfig
Source§impl PartialEq for PanicHookConfig
impl PartialEq for PanicHookConfig
Source§fn eq(&self, other: &PanicHookConfig) -> bool
fn eq(&self, other: &PanicHookConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PanicHookConfig
impl StructuralPartialEq for PanicHookConfig
Auto Trait Implementations§
impl Freeze for PanicHookConfig
impl RefUnwindSafe for PanicHookConfig
impl Send for PanicHookConfig
impl Sync for PanicHookConfig
impl Unpin for PanicHookConfig
impl UnsafeUnpin for PanicHookConfig
impl UnwindSafe for PanicHookConfig
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