pub struct HttpErrorHandler;Expand description
Standard error handler for HTTP responses
Implementations§
Source§impl HttpErrorHandler
impl HttpErrorHandler
Sourcepub fn handle_upload_error(
status: StatusCode,
error_text: &str,
context: &str,
) -> PusherError
pub fn handle_upload_error( status: StatusCode, error_text: &str, context: &str, ) -> PusherError
Handle upload-related HTTP errors with standardized messages
Sourcepub fn handle_auth_error(status: StatusCode, error_text: &str) -> PusherError
pub fn handle_auth_error(status: StatusCode, error_text: &str) -> PusherError
Handle authentication-related HTTP errors
Sourcepub fn handle_registry_error(
status: StatusCode,
error_text: &str,
operation: &str,
) -> PusherError
pub fn handle_registry_error( status: StatusCode, error_text: &str, operation: &str, ) -> PusherError
Handle registry-related HTTP errors
Sourcepub fn handle_streaming_error(
status: StatusCode,
error_text: &str,
) -> PusherError
pub fn handle_streaming_error( status: StatusCode, error_text: &str, ) -> PusherError
Handle streaming upload specific errors
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