pub enum SearchError {
HttpError(Error),
InvalidResponse,
NoResponseWithinTimeout,
IoError(Error),
Utf8Error(Utf8Error),
XmlError(ParseError),
SurfError(Error),
HyperError(Error),
HyperClientError(Error),
InvalidUri(InvalidUri),
}
Expand description
Errors than can occur while trying to find the gateway.
Variants§
HttpError(Error)
Http/Hyper error
InvalidResponse
Unable to process the response
NoResponseWithinTimeout
Did not receive any valid response within timeout
IoError(Error)
IO Error
Utf8Error(Utf8Error)
UTF-8 decoding error
XmlError(ParseError)
XML processing error
SurfError(Error)
When using aio_async_std feature
HyperError(Error)
When using the aio feature.
HyperClientError(Error)
When using the aio feature.
InvalidUri(InvalidUri)
Error parsing URI
Trait Implementations§
source§impl Debug for SearchError
impl Debug for SearchError
source§impl Display for SearchError
impl Display for SearchError
source§impl Error for SearchError
impl Error for SearchError
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 From<Elapsed> for SearchError
impl From<Elapsed> for SearchError
source§fn from(_err: Elapsed) -> SearchError
fn from(_err: Elapsed) -> SearchError
Converts to this type from the input type.
source§impl From<Error> for SearchError
impl From<Error> for SearchError
source§fn from(err: Error) -> SearchError
fn from(err: Error) -> SearchError
Converts to this type from the input type.
source§impl From<Error> for SearchError
impl From<Error> for SearchError
source§fn from(err: Error) -> SearchError
fn from(err: Error) -> SearchError
Converts to this type from the input type.
source§impl From<Error> for SearchError
impl From<Error> for SearchError
source§fn from(err: Error) -> SearchError
fn from(err: Error) -> SearchError
Converts to this type from the input type.
source§impl From<Error> for SearchError
impl From<Error> for SearchError
source§fn from(err: Error) -> SearchError
fn from(err: Error) -> SearchError
Converts to this type from the input type.
source§impl From<Error> for SearchError
impl From<Error> for SearchError
source§impl From<InvalidUri> for SearchError
impl From<InvalidUri> for SearchError
source§fn from(err: InvalidUri) -> SearchError
fn from(err: InvalidUri) -> SearchError
Converts to this type from the input type.
source§impl From<ParseError> for SearchError
impl From<ParseError> for SearchError
source§fn from(err: ParseError) -> SearchError
fn from(err: ParseError) -> SearchError
Converts to this type from the input type.
source§impl From<SearchError> for Error
impl From<SearchError> for Error
source§fn from(err: SearchError) -> Error
fn from(err: SearchError) -> Error
Converts to this type from the input type.
source§impl From<TimeoutError> for SearchError
impl From<TimeoutError> for SearchError
source§fn from(_err: TimeoutError) -> SearchError
fn from(_err: TimeoutError) -> SearchError
Converts to this type from the input type.
source§impl From<Utf8Error> for SearchError
impl From<Utf8Error> for SearchError
source§fn from(err: Utf8Error) -> SearchError
fn from(err: Utf8Error) -> SearchError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchError
impl !RefUnwindSafe for SearchError
impl Send for SearchError
impl Sync for SearchError
impl Unpin for SearchError
impl !UnwindSafe for SearchError
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