pub struct Error {
pub status: u16,
pub code: String,
pub message: String,
pub request_id: Option<String>,
pub retry_after: Option<u64>,
pub details: Option<String>,
pub body: Vec<u8>,
}Expand description
The only kind of error of the connector: the API ErrorResponse, or a failure of the client itself
(status zero and code client.network, client.timeout or client.invalid-config).
Fields§
§status: u16§code: String§message: String§request_id: Option<String>§retry_after: Option<u64>Seconds of the Retry-After, if it came.
details: Option<String>The details list of the ErrorResponse, as JSON text.
body: Vec<u8>The response body, as it came (empty on a client failure).
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for ConsumeError
impl From<Error> for ConsumeError
Source§fn from(e: Error) -> ConsumeError
fn from(e: Error) -> ConsumeError
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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