pub enum MetadataError {
MissingField(&'static str),
HttpClient(Error),
Http(Error),
Soap {
status: u16,
fault: SoapFault,
},
Http4xx5xx {
status: u16,
raw: String,
},
Auth(AuthError),
Xml(String),
InvalidHeader(String),
InvalidResponse(String),
InvalidArgument(String),
PollTimeout(String),
}Expand description
Errors produced by the cirrus-metadata client.
Variants§
MissingField(&'static str)
A required builder field was not set.
HttpClient(Error)
Failed to construct the underlying HTTP client.
Http(Error)
Network or transport-level HTTP failure.
Soap
The server returned a SOAP fault (<soapenv:Fault>).
Fields
Http4xx5xx
The server returned a non-2xx status with a body that wasn’t a recognizable SOAP envelope. The raw body is preserved for inspection.
Auth(AuthError)
An auth flow (token acquisition, refresh, OAuth exchange) failed.
Wraps the underlying AuthError from cirrus-auth.
Xml(String)
XML serialization or deserialization failure.
InvalidHeader(String)
Header value rejected by reqwest (invalid bytes, etc.).
InvalidResponse(String)
Response could not be interpreted as the requested type or shape.
InvalidArgument(String)
Client-side argument validation failed before reaching the wire
(per-call component caps exceeded, required field missing, etc.).
Distinct from Self::InvalidResponse, which signals a
server-side shape problem.
PollTimeout(String)
A polling helper hit its configured wall-clock budget before the
async operation completed. The job is not canceled — re-poll with
check_deploy_status / check_retrieve_status to continue
observing it.
Trait Implementations§
Source§impl Debug for MetadataError
impl Debug for MetadataError
Source§impl Display for MetadataError
impl Display for MetadataError
Source§impl Error for MetadataError
impl Error for MetadataError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()