pub enum IntelError {
Transport(Error),
Http(u16, String),
Parse(String),
Unsupported(String),
AllEndpointsDown(Option<Box<IntelError>>),
}Variants§
Transport(Error)
Transport / connection failure. Classed as fatal infrastructure, so a one-shot run exits 4 rather than reporting a model-level failure.
Http(u16, String)
Non-2xx HTTP status from the endpoint.
Parse(String)
Malformed response body.
Unsupported(String)
A transport this build doesn’t support (e.g. https without tls).
AllEndpointsDown(Option<Box<IntelError>>)
Every endpoint in the list is down or broken after the bounded failover
sweep. The boxed cause is the last failover-class error seen. Maps to the
same fatal-infrastructure class as Transport, so a once run exits 4;
a loop or reactive daemon backs off and retries rather than crashing.
Trait Implementations§
Source§impl Debug for IntelError
impl Debug for IntelError
Source§impl Display for IntelError
impl Display for IntelError
Source§impl Error for IntelError
impl Error for IntelError
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 !RefUnwindSafe for IntelError
impl !UnwindSafe for IntelError
impl Freeze for IntelError
impl Send for IntelError
impl Sync for IntelError
impl Unpin for IntelError
impl UnsafeUnpin for IntelError
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