Enum http_endpoint::Error [−][src]
pub enum Error<B> where
B: StdError, { Http(HttpError), HttpStatus(HttpStatusCode, Vec<u8>), Conversion(B), }
Expand description
An error type that any endpoint related error can be converted into.
Please note that this error type necessarily looses some information over dealing with the actual endpoint error type.
Variants
Http(HttpError)
An HTTP related error.
HttpStatus(HttpStatusCode, Vec<u8>)
We encountered an HTTP that either represents a failure or is not supported.
Some kind of conversion error was encountered.
Trait Implementations
impl<B> Error for Error<B> where
B: StdError,
[src]
impl<B> Error for Error<B> where
B: StdError,
[src]fn source(&self) -> Option<&(dyn StdError + 'static)>
[src]
fn source(&self) -> Option<&(dyn StdError + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<B> RefUnwindSafe for Error<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Error<B> where
B: Send,
B: Send,
impl<B> Sync for Error<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Error<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Error<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more