pub struct ErrorInfo {
pub error_code: &'static str,
pub error: String,
pub hint: Option<String>,
pub retryable: bool,
}Fields§
§error_code: &'static str§error: String§hint: Option<String>§retryable: boolImplementations§
Source§impl ErrorInfo
impl ErrorInfo
pub fn invalid_request(detail: impl Display) -> Self
pub fn cancelled() -> Self
pub fn too_many_redirects(max: u32) -> Self
pub fn request_timeout(detail: impl Display) -> Self
pub fn invalid_response(detail: impl Display) -> Self
pub fn chunk_disconnected(detail: impl Display) -> Self
pub fn response_too_large(limit_bytes: u64) -> Self
pub fn overloaded(detail: impl Display) -> Self
pub fn from_reqwest(e: &Error) -> Self
Auto Trait Implementations§
impl Freeze for ErrorInfo
impl RefUnwindSafe for ErrorInfo
impl Send for ErrorInfo
impl Sync for ErrorInfo
impl Unpin for ErrorInfo
impl UnsafeUnpin for ErrorInfo
impl UnwindSafe for ErrorInfo
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