Enum megamind::ClientBuilderError
source · pub enum ClientBuilderError {
MissingAuthToken,
ReqwestBuilder(Error),
AuthHeaderValue(InvalidHeaderValue),
}
Expand description
Errors that can occur during ClientBuilder::build
.
Variants§
MissingAuthToken
Missing auth token.
ReqwestBuilder(Error)
reqwest::ClientBuilder::build
failed.
AuthHeaderValue(InvalidHeaderValue)
Invalid value for the reqwest::header::AUTHORIZATION
header.
Trait Implementations§
source§impl Debug for ClientBuilderError
impl Debug for ClientBuilderError
source§impl Display for ClientBuilderError
impl Display for ClientBuilderError
source§impl Error for ClientBuilderError
impl Error for ClientBuilderError
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 ClientBuilderError
impl From<Error> for ClientBuilderError
source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for ClientBuilderError
impl From<InvalidHeaderValue> for ClientBuilderError
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientBuilderError
impl Send for ClientBuilderError
impl Sync for ClientBuilderError
impl Unpin for ClientBuilderError
impl !UnwindSafe for ClientBuilderError
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