pub struct ServiceUnavailable<T = ()>(pub T);Expand description
503 Service Unavailable
Tuple Fields§
§0: TTrait Implementations§
Source§fn from(err: ServiceUnavailable<T>) -> Self
fn from(err: ServiceUnavailable<T>) -> Self
Converts to this type from the input type.
Source§const STATUS_CODE: StatusCode = StatusCode::SERVICE_UNAVAILABLE
const STATUS_CODE: StatusCode = StatusCode::SERVICE_UNAVAILABLE
The status code of this wrapper.
Source§type WithInner<R> = ServiceUnavailable<R>
type WithInner<R> = ServiceUnavailable<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§
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