Skip to main content

ResultKind

Trait ResultKind 

Source
pub trait ResultKind: Debug + 'static {
    // Required methods
    fn tp(&self) -> ResultType;
    fn signature(&self) -> &'static str;
}
Expand description

Describes how a domain-specific error maps into a unified result model.

Required Methods§

Source

fn tp(&self) -> ResultType

Returns the classification of the result (e.g. success, client error, service error).

Source

fn signature(&self) -> &'static str

Returns a stable identifier for the specific error classification.

It is used for logging, metrics, and diagnostics.

Implementors§