pub enum Error<T> {
UriError(UriError),
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> !RefUnwindSafe for Error<T>
impl<T> !UnwindSafe for Error<T>
impl<T> Freeze for Error<T>
impl<T> Send for Error<T>
impl<T> Sync for Error<T>
impl<T> Unpin for Error<T>
impl<T> UnsafeUnpin for Error<T>where
ApiError<T>: UnsafeUnpin,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more