pub enum RunnerTransportErrorKind {
FetchFailed {
endpoint: String,
},
NonSuccessStatus {
endpoint: String,
status: u16,
body: String,
},
NonJsonBody {
endpoint: String,
},
MalformedBody {
endpoint: String,
detail: String,
},
Unreachable {
endpoint: String,
message: String,
},
}Expand description
Transport-level failure variants exposed by the HTTP client. The
concrete reqwest::Error source lives in smix-runner-client; the
wire stone exposes only the discriminator + endpoint context so
non-HTTP transports can reuse the variants.
Variants§
FetchFailed
Network / transport-layer fetch error (timeout, DNS, TLS, etc.).
NonSuccessStatus
Runner returned non-2xx HTTP status.
Fields
NonJsonBody
Runner returned a body that wasn’t valid JSON.
MalformedBody
Runner returned valid JSON but it didn’t match the expected schema.
Fields
Unreachable
Runner is unreachable (refused / closed / not listening).
Trait Implementations§
Source§impl Debug for RunnerTransportErrorKind
impl Debug for RunnerTransportErrorKind
Source§impl Display for RunnerTransportErrorKind
impl Display for RunnerTransportErrorKind
Source§impl Error for RunnerTransportErrorKind
impl Error for RunnerTransportErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RunnerTransportErrorKind
impl RefUnwindSafe for RunnerTransportErrorKind
impl Send for RunnerTransportErrorKind
impl Sync for RunnerTransportErrorKind
impl Unpin for RunnerTransportErrorKind
impl UnsafeUnpin for RunnerTransportErrorKind
impl UnwindSafe for RunnerTransportErrorKind
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