pub struct HttpErrorHandler;
Expand description
HTTP error handler for registry operations
Implementations§
Source§impl HttpErrorHandler
impl HttpErrorHandler
Sourcepub fn handle_upload_error(
status: StatusCode,
error_text: &str,
context: &str,
) -> RegistryError
pub fn handle_upload_error( status: StatusCode, error_text: &str, context: &str, ) -> RegistryError
Handle upload-related HTTP errors with standardized messages
Sourcepub fn handle_auth_error(status: StatusCode, error_text: &str) -> RegistryError
pub fn handle_auth_error(status: StatusCode, error_text: &str) -> RegistryError
Handle authentication-related HTTP errors
Sourcepub fn handle_registry_error(
status: StatusCode,
error_text: &str,
operation: &str,
) -> RegistryError
pub fn handle_registry_error( status: StatusCode, error_text: &str, operation: &str, ) -> RegistryError
Handle registry-related HTTP errors
Sourcepub fn handle_streaming_error(
status: StatusCode,
error_text: &str,
) -> RegistryError
pub fn handle_streaming_error( status: StatusCode, error_text: &str, ) -> RegistryError
Handle streaming upload specific errors
Sourcepub fn is_storage_backend_error(error_text: &str) -> bool
pub fn is_storage_backend_error(error_text: &str) -> bool
Check if error indicates a storage backend issue that might be temporary
Sourcepub fn get_storage_error_retry_delay(
attempt: u32,
base_delay_secs: u64,
) -> Duration
pub fn get_storage_error_retry_delay( attempt: u32, base_delay_secs: u64, ) -> Duration
Get suggested retry delay for storage backend errors (exponential backoff)
Auto Trait Implementations§
impl Freeze for HttpErrorHandler
impl RefUnwindSafe for HttpErrorHandler
impl Send for HttpErrorHandler
impl Sync for HttpErrorHandler
impl Unpin for HttpErrorHandler
impl UnwindSafe for HttpErrorHandler
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