pub struct ErrorMeta { /* private fields */ }Implementations§
Source§impl ErrorMeta
impl ErrorMeta
pub fn from_response_meta(meta: ResponseMeta, body: impl Into<String>) -> Self
pub fn operation(&self) -> Option<&str>
pub fn url(&self) -> &str
pub fn status(&self) -> u16
pub fn request_id(&self) -> Option<&str>
pub fn attempt_count(&self) -> u32
pub fn elapsed(&self) -> Duration
pub fn retry_after(&self) -> Option<Duration>
pub fn body_snippet(&self) -> Option<&str>
Trait Implementations§
impl Eq for ErrorMeta
impl StructuralPartialEq for ErrorMeta
Auto Trait Implementations§
impl Freeze for ErrorMeta
impl RefUnwindSafe for ErrorMeta
impl Send for ErrorMeta
impl Sync for ErrorMeta
impl Unpin for ErrorMeta
impl UnsafeUnpin for ErrorMeta
impl UnwindSafe for ErrorMeta
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