pub enum UploadError {
HttpStatus {
status: u16,
retry_after: Option<Duration>,
message: String,
},
Transport(String),
AccountGroupNotResolved {
requested: String,
available: Vec<String>,
},
Other(String),
}Expand description
Error type returned by GenevaClient::upload_batch.
Provides enough information for callers to implement retry strategies:
HttpStatuscarries the HTTP status code and an optionalRetry-Afterduration so callers can distinguish retriable server errors (429, 5xx) from permanent client errors (4xx).Transportindicates a network-level failure (timeout, connection refused, DNS) that is typically retriable.AccountGroupNotResolvedindicates a permanent routing configuration error.Othercovers config-service or internal errors.
Variants§
HttpStatus
Server returned a non-202 HTTP status.
Transport(String)
Network/transport failure (timeout, connection refused, DNS, etc.)
AccountGroupNotResolved
The configured logical account group was not present in the resolved primary-moniker map. This is not retriable without a configuration or credential update.
Other(String)
Config service or other internal error.
Trait Implementations§
Source§impl Debug for UploadError
impl Debug for UploadError
Source§impl Display for UploadError
impl Display for UploadError
Source§impl Error for UploadError
impl Error for UploadError
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 UploadError
impl RefUnwindSafe for UploadError
impl Send for UploadError
impl Sync for UploadError
impl Unpin for UploadError
impl UnsafeUnpin for UploadError
impl UnwindSafe for UploadError
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