pub enum UrlError {
Reqwest(UrlError),
Scheme,
Address,
}
Expand description
Possible errors when initializing a Client
.
Variants
Reqwest(UrlError)
Unable to parse the URL.
Scheme
Unable to determine the scheme of the address.
The provider for the Client
does not automatically add the HTTP
scheme like other Rust frameworks. If you encounter this error,
you probably need to add http://
or https://
to your server address.
Address
The server address was not provided.
Trait Implementations
sourceimpl Fail for UrlError
impl Fail for UrlError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ParseError> for UrlError
impl From<ParseError> for UrlError
Auto Trait Implementations
impl RefUnwindSafe for UrlError
impl Send for UrlError
impl Sync for UrlError
impl Unpin for UrlError
impl UnwindSafe for UrlError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more