pub enum Error {
UrlParse(ParseError),
Reqwest(Error),
Smarthome(StatusCode),
VersionParse(Error),
IncompatibleVersion(String),
}
Variants§
UrlParse(ParseError)
A URL could not be parsed and thus is invalid
Reqwest(Error)
The actual request failed, mostly due to network errors
Smarthome(StatusCode)
The Smarthome server responded with an unexpected status code
VersionParse(Error)
A semantic version number could not be parsed and thus is invalid
IncompatibleVersion(String)
The SDK cannot connect to a Server which is incompatible
Trait Implementations§
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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