pub enum ClientBuildError {
InvalidHeaderValue(InvalidHeaderValue),
Reqwest(Error),
}Expand description
Error constructing a DoseSpotClient.
The subscription key and access token become HTTP header values, so they must be visible ASCII; building the underlying HTTP client can also fail (e.g. no TLS backend enabled).
Variants§
InvalidHeaderValue(InvalidHeaderValue)
The subscription key or access token contains bytes not allowed in an HTTP header.
Reqwest(Error)
The underlying reqwest::Client could not be constructed.
Trait Implementations§
Source§impl Debug for ClientBuildError
impl Debug for ClientBuildError
Source§impl Display for ClientBuildError
impl Display for ClientBuildError
Source§impl Error for ClientBuildError
impl Error for ClientBuildError
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 !RefUnwindSafe for ClientBuildError
impl !UnwindSafe for ClientBuildError
impl Freeze for ClientBuildError
impl Send for ClientBuildError
impl Sync for ClientBuildError
impl Unpin for ClientBuildError
impl UnsafeUnpin for ClientBuildError
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