Enum solar_api::SolarApiError
source · pub enum SolarApiError {
NetworkError(Error),
ApiError(Error),
ForbiddenError(Error),
ParseError(Error),
}Expand description
Possible errors that this lib can return. The underlying errors are included,
either being [request::Error``] or [serde_json::Error`]
Variants§
Trait Implementations§
source§impl Debug for SolarApiError
impl Debug for SolarApiError
source§impl Display for SolarApiError
impl Display for SolarApiError
source§impl Error for SolarApiError
impl Error for SolarApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 SolarApiError
impl From<Error> for SolarApiError
Auto Trait Implementations§
impl !RefUnwindSafe for SolarApiError
impl Send for SolarApiError
impl Sync for SolarApiError
impl Unpin for SolarApiError
impl !UnwindSafe for SolarApiError
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