pub enum Error<T> {
Item(T),
Reqwest(Error),
ReqwestHeader(InvalidHeaderValue),
Serde(Error),
Unexpected {
code: u16,
data: Bytes,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl<T> From<InvalidHeaderValue> for Error<T>
impl<T> From<InvalidHeaderValue> for Error<T>
source§fn from(value: InvalidHeaderValue) -> Self
fn from(value: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for Error<T>
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