pub struct BadGateway<T = ()>(pub T);Expand description
502 Bad Gateway
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for BadGateway<T>
impl<T: Clone> Clone for BadGateway<T>
impl<T: Copy> Copy for BadGateway<T>
Source§impl<T: Debug> Debug for BadGateway<T>
impl<T: Debug> Debug for BadGateway<T>
Source§impl<T: Default> Default for BadGateway<T>
impl<T: Default> Default for BadGateway<T>
Source§impl<T> Deref for BadGateway<T>
impl<T> Deref for BadGateway<T>
Source§impl<T> DerefMut for BadGateway<T>
impl<T> DerefMut for BadGateway<T>
Source§impl<T, S> From<BadGateway<T>> for ApiResponse<S>
impl<T, S> From<BadGateway<T>> for ApiResponse<S>
Source§fn from(err: BadGateway<T>) -> Self
fn from(err: BadGateway<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<T> for BadGateway<T>
impl<T> From<T> for BadGateway<T>
Source§impl<T> StatusProvider for BadGateway<T>
impl<T> StatusProvider for BadGateway<T>
Source§const STATUS_CODE: StatusCode = StatusCode::BAD_GATEWAY
const STATUS_CODE: StatusCode = StatusCode::BAD_GATEWAY
The status code of this wrapper.
Source§type WithInner<R> = BadGateway<R>
type WithInner<R> = BadGateway<R>
The same status code with a different body type, for example
NotFound<T> for
NotFound<String>.Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Returns the wrapped body.
Source§fn into_set<E>(self) -> ApiResponse<E>
fn into_set<E>(self) -> ApiResponse<E>
Converts into an
ApiResponse whose set contains this status code. This is the
same as calling into().Auto Trait Implementations§
impl<T> Freeze for BadGateway<T>where
T: Freeze,
impl<T> RefUnwindSafe for BadGateway<T>where
T: RefUnwindSafe,
impl<T> Send for BadGateway<T>where
T: Send,
impl<T> Sync for BadGateway<T>where
T: Sync,
impl<T> Unpin for BadGateway<T>where
T: Unpin,
impl<T> UnsafeUnpin for BadGateway<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BadGateway<T>where
T: UnwindSafe,
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