Struct Upstream Failure
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct UpstreamFailure {
pub status: Option<u16>,
pub body: String,
pub headers: BTreeMap<String, String>,
pub class: UpstreamFailureClass,
}
Structured provider failure surfaced only for explicitly retry-aware dispatches.
Fields
status: Option<u16>
HTTP status when a provider response was received.
body: String
Bounded response body or transport error message.
headers: BTreeMap<String, String>
Safe response headers captured from the provider.
class: UpstreamFailureClass
Retry classification.
Implementations
impl UpstreamFailure
impl UpstreamFailure
is_retryable
pub fn is_retryable(&self) -> bool
Whether Switchyard may be consulted for another bounded provider attempt.
Trait Implementations
impl Clone for UpstreamFailure
impl Clone for UpstreamFailure
clone
fn clone(&self) -> UpstreamFailure
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for UpstreamFailure
impl Debug for UpstreamFailure
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for UpstreamFailure
impl<'de> Deserialize<'de> for UpstreamFailure
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Display for UpstreamFailure
impl Display for UpstreamFailure
fmt
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
impl Serialize for UpstreamFailure
impl Serialize for UpstreamFailure
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,