pub struct NetworkAuthenticationRequired<T = ()>(pub T);Expand description
511 Network Authentication Required
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for NetworkAuthenticationRequired<T>
impl<T: Clone> Clone for NetworkAuthenticationRequired<T>
Source§fn clone(&self) -> NetworkAuthenticationRequired<T>
fn clone(&self) -> NetworkAuthenticationRequired<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for NetworkAuthenticationRequired<T>
Source§impl<T: Debug> Debug for NetworkAuthenticationRequired<T>
impl<T: Debug> Debug for NetworkAuthenticationRequired<T>
Source§impl<T: Default> Default for NetworkAuthenticationRequired<T>
impl<T: Default> Default for NetworkAuthenticationRequired<T>
Source§fn default() -> NetworkAuthenticationRequired<T>
fn default() -> NetworkAuthenticationRequired<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for NetworkAuthenticationRequired<T>
impl<T> Deref for NetworkAuthenticationRequired<T>
Source§impl<T> DerefMut for NetworkAuthenticationRequired<T>
impl<T> DerefMut for NetworkAuthenticationRequired<T>
Source§impl<T, R, S> From<NetworkAuthenticationRequired<R>> for ErrorSet<S, T>
impl<T, R, S> From<NetworkAuthenticationRequired<R>> for ErrorSet<S, T>
Source§fn from(err: NetworkAuthenticationRequired<R>) -> Self
fn from(err: NetworkAuthenticationRequired<R>) -> Self
Converts to this type from the input type.
Source§impl<T> From<T> for NetworkAuthenticationRequired<T>
impl<T> From<T> for NetworkAuthenticationRequired<T>
Source§impl<T: Serialize> IntoResponse for NetworkAuthenticationRequired<T>
impl<T: Serialize> IntoResponse for NetworkAuthenticationRequired<T>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl<T: JsonSchema> OperationOutput for NetworkAuthenticationRequired<T>
Available on crate feature aide only.
impl<T: JsonSchema> OperationOutput for NetworkAuthenticationRequired<T>
Available on crate feature
aide only.Source§fn inferred_responses(
_ctx: &mut GenContext,
_operation: &mut Operation,
) -> Vec<(Option<u16>, Response)>
fn inferred_responses( _ctx: &mut GenContext, _operation: &mut Operation, ) -> Vec<(Option<u16>, Response)>
Inferred responses are used when the type is
used as a request handler return type. Read more
Source§fn operation_response(
ctx: &mut GenContext,
operation: &mut Operation,
) -> Option<Response>
fn operation_response( ctx: &mut GenContext, operation: &mut Operation, ) -> Option<Response>
Return a response documentation for this type,
alternatively modify the operation if required. Read more
Source§impl<T> StatusWrapper for NetworkAuthenticationRequired<T>
impl<T> StatusWrapper for NetworkAuthenticationRequired<T>
Source§const STATUS_CODE: StatusCode = StatusCode::NETWORK_AUTHENTICATION_REQUIRED
const STATUS_CODE: StatusCode = StatusCode::NETWORK_AUTHENTICATION_REQUIRED
The status code associated with type.
Source§type Pure = NetworkAuthenticationRequired
type Pure = NetworkAuthenticationRequired
The pure type of this status wrapper, without any inner value.
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Convert this status wrapper into its inner value.
Auto Trait Implementations§
impl<T> Freeze for NetworkAuthenticationRequired<T>where
T: Freeze,
impl<T> RefUnwindSafe for NetworkAuthenticationRequired<T>where
T: RefUnwindSafe,
impl<T> Send for NetworkAuthenticationRequired<T>where
T: Send,
impl<T> Sync for NetworkAuthenticationRequired<T>where
T: Sync,
impl<T> Unpin for NetworkAuthenticationRequired<T>where
T: Unpin,
impl<T> UnsafeUnpin for NetworkAuthenticationRequired<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NetworkAuthenticationRequired<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, S> Handler<IntoResponseHandler, S> for T
impl<T, S> Handler<IntoResponseHandler, S> for T
Source§fn call(
self,
_req: Request<Body>,
_state: S,
) -> <T as Handler<IntoResponseHandler, S>>::Future
fn call( self, _req: Request<Body>, _state: S, ) -> <T as Handler<IntoResponseHandler, S>>::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
Source§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service and no state.Source§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
Convert the handler into a
MakeService and no state. Read moreSource§fn into_make_service_with_connect_info<C>(
self,
) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
fn into_make_service_with_connect_info<C>( self, ) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
Convert the handler into a
MakeService which stores information
about the incoming connection and has no state. Read more