pub enum AeoError {
Parse(Error),
Http(Box<Error>),
Io(Error),
HttpStatus {
status: u16,
url: String,
},
}Expand description
Errors returned by the AEO SDK.
Variants§
Parse(Error)
The document was not valid JSON or did not match the AEO schema.
Http(Box<Error>)
HTTP transport error (only with client feature).
Io(Error)
I/O error reading a response body.
HttpStatus
A 4xx or 5xx response was returned by the origin.
Trait Implementations§
Source§impl Error for AeoError
impl Error for AeoError
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()
Auto Trait Implementations§
impl Freeze for AeoError
impl !RefUnwindSafe for AeoError
impl Send for AeoError
impl Sync for AeoError
impl Unpin for AeoError
impl UnsafeUnpin for AeoError
impl !UnwindSafe for AeoError
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