wzzc-dev/moui/core/diagnostics does not have a README file

    DiagnosticDomain

    pub(all) enum DiagnosticDomain {
    Runtime
    Render
    Backend
    Text
    Accessibility
    Services
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    DiagnosticDomain::equal

    automatically derived

    DiagnosticDomain::not_equal

    fn DiagnosticDomain::not_equal(x : DiagnosticDomain, y : DiagnosticDomain) -> Bool
    automatically derived

    DiagnosticDomain::to_json

    automatically derived

    DiagnosticDomain::to_repr

    automatically derived

    DiagnosticEvent

    pub(all) struct DiagnosticEvent {
    code : String
    severity : DiagnosticSeverity
    domain : DiagnosticDomain
    message : String
    source : String
    generation : UInt64?
    frame : UInt64?
    detail : String?
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    One cross-layer diagnostic fact. Capability notes stay in the renderer capability report; this envelope carries the stable code, severity, and short message that DevTools, Showcase, embedded wire transport, and Agent hosts can all consume.

    DiagnosticEvent::equal

    automatically derived

    DiagnosticEvent::is_error

    fn DiagnosticEvent::is_error(self : DiagnosticEvent) -> Bool

    DiagnosticEvent::new

    fn DiagnosticEvent::new(code~ : String, severity~ : DiagnosticSeverity, domain~ : DiagnosticDomain, message~ : String, source? : String, generation? : UInt64?, frame? : UInt64?, detail? : String?) -> DiagnosticEvent

    DiagnosticEvent::not_equal

    fn DiagnosticEvent::not_equal(x : DiagnosticEvent, y : DiagnosticEvent) -> Bool
    automatically derived

    DiagnosticEvent::to_json

    automatically derived

    DiagnosticEvent::to_repr

    automatically derived

    DiagnosticSeverity

    pub(all) enum DiagnosticSeverity {
    Info
    Warning
    Error
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    Stable severity for a diagnostic event. Info is a normal degrade or fallback, Warning is a capability gap the app can continue through, and Error is a host/render failure that needs attention.

    DiagnosticSeverity::equal

    automatically derived

    DiagnosticSeverity::not_equal

    automatically derived

    DiagnosticSeverity::to_json

    automatically derived

    DiagnosticSeverity::to_repr

    automatically derived

    DiagnosticSink

    pub struct DiagnosticSink {
    // private fields
    }

    Caller-owned bounded diagnostic sink. It is deliberately not a runtime global log (ADR 0056): a tool/host creates one, passes it to the producers it cares about, and drains it at a sampling boundary.

    DiagnosticSink::clear

    fn DiagnosticSink::clear(self : DiagnosticSink) -> Unit

    DiagnosticSink::drain

    DiagnosticSink::length

    fn DiagnosticSink::length(self : DiagnosticSink) -> Int

    DiagnosticSink::new

    fn DiagnosticSink::new(capacity? : Int) -> DiagnosticSink

    DiagnosticSink::push

    fn DiagnosticSink::push(self : DiagnosticSink, event : DiagnosticEvent) -> Unit

    DiagnosticSink::snapshot