pub enum ClientConfigError {
InvalidBaseUrl,
UnsupportedScheme,
NonOriginBaseUrl,
InvalidBearerToken,
ZeroLimit,
HttpClient,
}Expand description
Invalid client configuration detected before any network operation.
Variants§
InvalidBaseUrl
Base URL is not syntactically valid.
UnsupportedScheme
Only explicit HTTP and HTTPS origins are supported.
NonOriginBaseUrl
Base URL must be one origin without credentials, query, fragment, or path prefix.
InvalidBearerToken
Bearer secret cannot be represented safely in one header.
ZeroLimit
Every local client bound must be positive.
HttpClient
Underlying HTTP client construction failed.
Trait Implementations§
Source§impl Clone for ClientConfigError
impl Clone for ClientConfigError
Source§fn clone(&self) -> ClientConfigError
fn clone(&self) -> ClientConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientConfigError
impl Debug for ClientConfigError
Source§impl Display for ClientConfigError
impl Display for ClientConfigError
impl Eq for ClientConfigError
Source§impl Error for ClientConfigError
impl Error for ClientConfigError
1.30.0 · 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()
Source§impl PartialEq for ClientConfigError
impl PartialEq for ClientConfigError
impl StructuralPartialEq for ClientConfigError
Auto Trait Implementations§
impl Freeze for ClientConfigError
impl RefUnwindSafe for ClientConfigError
impl Send for ClientConfigError
impl Sync for ClientConfigError
impl Unpin for ClientConfigError
impl UnsafeUnpin for ClientConfigError
impl UnwindSafe for ClientConfigError
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