Enum price_info::Error
source · [−]pub enum Error {
StatusCode(&'static str),
UnexpectedResponse(Option<String>),
Fetch(Error),
Io(Error),
}
Expand description
Price info error.
Variants
StatusCode(&'static str)
The API returned an unexpected status code.
UnexpectedResponse(Option<String>)
The API returned an unexpected status content.
Fetch(Error)
There was an error when trying to reach the API.
Io(Error)
IO error when reading API response.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more