pub struct ErrorUtils;Expand description
Error handling utility functions
Implementations§
Source§impl ErrorUtils
impl ErrorUtils
Sourcepub fn io_error_to_message(err: &Error) -> String
pub fn io_error_to_message(err: &Error) -> String
Converts an IO error to a user-friendly message
Sourcepub fn network_error_to_message(err: &Error) -> String
pub fn network_error_to_message(err: &Error) -> String
Converts a network error to a user-friendly message
Auto Trait Implementations§
impl Freeze for ErrorUtils
impl RefUnwindSafe for ErrorUtils
impl Send for ErrorUtils
impl Sync for ErrorUtils
impl Unpin for ErrorUtils
impl UnsafeUnpin for ErrorUtils
impl UnwindSafe for ErrorUtils
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