pub struct DiagnosticEvent {
pub sequence: u64,
pub correlation_id: u64,
pub code: DiagnosticCode,
pub severity: DiagnosticSeverity,
pub excel_code: i32,
}Expand description
Pointer-free fixed-size event. excel_code preserves raw Excel status.
Fields§
§sequence: u64Monotonic process-local sequence assigned when the event is emitted.
correlation_id: u64Producer-provided correlation identifier, defaulting to Self::sequence.
code: DiagnosticCodeStable machine-readable event category.
severity: DiagnosticSeverityProducer-selected severity.
excel_code: i32Exact raw Excel return code when the event relates to an Excel call.
Implementations§
Source§impl DiagnosticEvent
impl DiagnosticEvent
Sourcepub const fn new(
code: DiagnosticCode,
severity: DiagnosticSeverity,
excel_code: i32,
) -> Self
pub const fn new( code: DiagnosticCode, severity: DiagnosticSeverity, excel_code: i32, ) -> Self
Creates an event before emission assigns its sequence number.
Sourcepub const fn with_correlation(self, correlation_id: u64) -> Self
pub const fn with_correlation(self, correlation_id: u64) -> Self
Replaces the default correlation identifier for related event streams.
Trait Implementations§
Source§impl Clone for DiagnosticEvent
impl Clone for DiagnosticEvent
impl Copy for DiagnosticEvent
Source§impl Debug for DiagnosticEvent
impl Debug for DiagnosticEvent
impl Eq for DiagnosticEvent
Source§impl PartialEq for DiagnosticEvent
impl PartialEq for DiagnosticEvent
impl StructuralPartialEq for DiagnosticEvent
Auto Trait Implementations§
impl Freeze for DiagnosticEvent
impl RefUnwindSafe for DiagnosticEvent
impl Send for DiagnosticEvent
impl Sync for DiagnosticEvent
impl Unpin for DiagnosticEvent
impl UnsafeUnpin for DiagnosticEvent
impl UnwindSafe for DiagnosticEvent
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