pub enum ExportReason {
Drop,
Panic,
OnDemand,
Signal,
}Expand description
Which exit path triggered an export. Used by export_for_reason to
consult the per-path enable flags (on_exit, on_panic) in
AutoExportConfig BEFORE consuming the one-shot idempotency latch, so a
disabled path does not prevent a later enabled path from exporting.
Variants§
Drop
Triggered by MemScopeGuard::drop (normal return from main).
Gated by AutoExportConfig::on_exit.
Panic
Triggered by the panic hook. Gated by AutoExportConfig::on_panic.
OnDemand
Triggered by trigger_export_now (on-demand or periodic flusher).
Always allowed — the user explicitly asked for an export.
Signal
Triggered by a signal handler (Ctrl-C / SIGTERM). The signal policy is checked separately inside the ctrlc handler, so this is always allowed once the handler has decided to proceed.
Trait Implementations§
Source§impl Clone for ExportReason
impl Clone for ExportReason
Source§fn clone(&self) -> ExportReason
fn clone(&self) -> ExportReason
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 moreimpl Copy for ExportReason
Source§impl Debug for ExportReason
impl Debug for ExportReason
impl Eq for ExportReason
Source§impl PartialEq for ExportReason
impl PartialEq for ExportReason
impl StructuralPartialEq for ExportReason
Auto Trait Implementations§
impl Freeze for ExportReason
impl RefUnwindSafe for ExportReason
impl Send for ExportReason
impl Sync for ExportReason
impl Unpin for ExportReason
impl UnsafeUnpin for ExportReason
impl UnwindSafe for ExportReason
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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