pub struct EscalationReason;Expand description
Canonical escalation_reason strings emitted in Trace.escalation_reason.
The wire format is Option<String>; these constants and constructors are
the single source of values so agents can match without string-parsing
surprise.
| Value | Meaning |
|---|---|
"empty_html_shell" | HTTP returned HTML with no visible text — SPA bootstrap |
"http_status_NNN" | HTTP returned status code NNN |
"http_failed_<code>" | Transport-level failure, <code> is the ErrorCode |
Implementations§
Source§impl EscalationReason
impl EscalationReason
Sourcepub const EMPTY_HTML_SHELL: &'static str = "empty_html_shell"
pub const EMPTY_HTML_SHELL: &'static str = "empty_html_shell"
HTTP response was an empty SPA shell.
Sourcepub fn http_status(status: u16) -> String
pub fn http_status(status: u16) -> String
HTTP returned status ≥ 400. Produces "http_status_NNN".
Sourcepub fn http_failed(error_code: &str) -> String
pub fn http_failed(error_code: &str) -> String
HTTP transport error. Produces "http_failed_<error_code>".
Auto Trait Implementations§
impl Freeze for EscalationReason
impl RefUnwindSafe for EscalationReason
impl Send for EscalationReason
impl Sync for EscalationReason
impl Unpin for EscalationReason
impl UnsafeUnpin for EscalationReason
impl UnwindSafe for EscalationReason
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