Enum tankerkoenig::Error
source · pub enum Error {
RequestError {
source: Error,
},
ResponseParsingError {
body: String,
},
HeaderConstruction {
source: InvalidHeaderValue,
},
ClientConstruction {
source: Error,
},
UrlConstruction,
}
Expand description
Contains all possible errors of the crate
Variants§
RequestError
Something went wrong during fetching of the tankerkoenig api
Fields
§
source: Error
Error source
ResponseParsingError
Something went wrong during the parsing of the tankerkoenig api response.
HeaderConstruction
Something went wrong during header construction
Fields
§
source: InvalidHeaderValue
Error source
ClientConstruction
Something went wrong during http client creation
Fields
§
source: Error
Error source
UrlConstruction
Failed to parse the request url
Trait Implementations§
source§impl Debug for TankerkoenigError
impl Debug for TankerkoenigError
source§impl Display for TankerkoenigError
impl Display for TankerkoenigError
source§impl Error for TankerkoenigError
impl Error for TankerkoenigError
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()
Auto Trait Implementations§
impl Freeze for TankerkoenigError
impl !RefUnwindSafe for TankerkoenigError
impl Send for TankerkoenigError
impl Sync for TankerkoenigError
impl Unpin for TankerkoenigError
impl !UnwindSafe for TankerkoenigError
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