Skip to main content

fmt_diag_typ

Function fmt_diag_typ 

Source
pub fn fmt_diag_typ<T>(
    f: &mut dyn Write,
    typ: Option<ResultType>,
    e: &T,
) -> Result<(), Error>
where T: ErrorDiagnostic,
Expand description

Formats a full diagnostic view of an error for logging and tracing.

Includes the result type, signature, tag, service, and the display representation of the error and its source chain. For ServiceError results, a resolved backtrace is appended when available.