pub enum Error<T> {
Hyper(Error),
Serde(Error),
ApiError(ApiError<T>),
}
Variants§
Trait Implementations§
Source§impl<'de, T> From<(StatusCode, &'de [u8])> for Error<T>where
T: Deserialize<'de>,
impl<'de, T> From<(StatusCode, &'de [u8])> for Error<T>where
T: Deserialize<'de>,
Source§fn from(e: (StatusCode, &'de [u8])) -> Self
fn from(e: (StatusCode, &'de [u8])) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Error<T>
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> !UnwindSafe for Error<T>
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