pub struct PanicHookConfig {
pub endpoint: Url,
pub token: SecretString,
pub source: SourceId,
pub spool_dir: PathBuf,
pub kind: PanicKind,
pub build: BuildInfo,
pub context: Value,
pub context_files: Vec<PathBuf>,
pub sent_retention_days: u64,
}Expand description
Panic-hook crash capture API. Panic-hook crash capture API. Panic-hook crash capture API. Configuration for the process-wide panic hook.
Fields§
§endpoint: UrlHTTP endpoint for crash upload. A base server URL is joined with /v1/crashes.
token: SecretStringBearer token used by crate::ship_pending_crashes.
source: SourceIdSource identity stored in crash metadata.
spool_dir: PathBufRoot directory containing pending/ and sent/ crash entries.
kind: PanicKindCrash artifact strategy.
build: BuildInfoBuild metadata stored in crash reports.
context: ValueExtra JSON context stored in crash reports.
context_files: Vec<PathBuf>Extra files copied into each crash entry as attachments.
sent_retention_days: u64Number of days to retain successfully sent entries locally.
Trait Implementations§
Source§impl Clone for PanicHookConfig
impl Clone 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request