(e: &SdkError<T, R>)
| 213 | } |
| 214 | |
| 215 | pub fn sdk_error_code<T: ProvideErrorMetadata, R>(e: &SdkError<T, R>) -> String { |
| 216 | e.as_service_error() |
| 217 | .and_then(|se| se.meta().code().map(str::to_string)) |
| 218 | .unwrap_or_else(|| e.to_string()) |
| 219 | } |
| 220 | |
| 221 | fn sdk_status_code<E>(e: &SdkError<E, Response>) -> Option<u16> { |
| 222 | e.raw_response().map(|res| res.status().as_u16()) |
no test coverage detected