pub enum DiagnosticEvent {
PreparationStarted,
PreparationFailed {
error: DiagnosticErrorCategory,
},
RequestPrepared {
context: DiagnosticContext,
},
DispatchStarted {
context: DiagnosticContext,
},
ExecutionFailed {
context: DiagnosticContext,
error: DiagnosticErrorCategory,
},
ResponseReceived {
context: DiagnosticContext,
response: DiagnosticResponse,
},
DecodeFailed {
context: DiagnosticContext,
response: Option<DiagnosticResponse>,
error: DiagnosticErrorCategory,
},
Completed {
context: DiagnosticContext,
response: Option<DiagnosticResponse>,
},
}Expand description
Structured client lifecycle event containing no request or response payload.
Variants§
PreparationStarted
A caller-owned workspace was cleared before preparation began.
PreparationFailed
Provider preparation failed before an identity could be trusted.
Fields
error: DiagnosticErrorCategoryPayload-free failure category.
RequestPrepared
A complete provider request and policy context was prepared.
Fields
context: DiagnosticContextValidated provider operation context.
DispatchStarted
One authenticated transport attempt is about to begin.
Fields
context: DiagnosticContextValidated provider operation context.
ExecutionFailed
Authenticated execution failed before checked decoding.
Fields
context: DiagnosticContextValidated provider operation context.
error: DiagnosticErrorCategoryPayload-free failure category.
ResponseReceived
A committed bounded response was received.
Fields
context: DiagnosticContextValidated provider operation context.
response: DiagnosticResponseAdmitted response metadata.
DecodeFailed
Provider-owned checked decoding failed.
Fields
context: DiagnosticContextValidated provider operation context.
response: Option<DiagnosticResponse>Response metadata when a committed response was observable.
error: DiagnosticErrorCategoryPayload-free failure category.
Completed
One operation completed successfully.
Fields
context: DiagnosticContextValidated provider operation context.
response: Option<DiagnosticResponse>Response metadata when a committed response was observable.
Trait Implementations§
Source§impl Clone for DiagnosticEvent
impl Clone for DiagnosticEvent
Source§fn clone(&self) -> DiagnosticEvent
fn clone(&self) -> DiagnosticEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more