pub enum BackendError {
ConnectionFailed {
backend: String,
url: String,
reason: String,
},
NotAvailable {
backend: String,
reason: String,
},
HttpError {
status: u16,
message: String,
debug: ResponseDebugContext,
},
UnexpectedResponse {
backend: String,
message: String,
},
ProviderError {
provider: String,
code: Option<String>,
message: String,
debug: ResponseDebugContext,
},
}Expand description
Backend-specific errors
Variants§
ConnectionFailed
Connection failed (network, DNS, etc)
NotAvailable
Backend not available (not running, health check failed)
HttpError
HTTP error from backend
Fields
§
debug: ResponseDebugContextResponse-header correlation ids (empty when the error was not built from an HTTP response).
UnexpectedResponse
Backend returned unexpected response format
ProviderError
Provider-specific error
Trait Implementations§
Source§impl Debug for BackendError
impl Debug for BackendError
Source§impl Display for BackendError
impl Display for BackendError
Source§impl Error for BackendError
impl Error for BackendError
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 BackendError
impl RefUnwindSafe for BackendError
impl Send for BackendError
impl Sync for BackendError
impl Unpin for BackendError
impl UnsafeUnpin for BackendError
impl UnwindSafe for BackendError
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