pub enum RequestLocaleRejection {
QueryTooLong,
MalformedQuery,
DuplicateQueryOverride,
UnsupportedQueryLocale,
HeaderTooLong,
MalformedHeader,
}Expand description
Predictable malformed-input failures from RequestLocale.
Variants§
QueryTooLong
The raw query exceeds MAX_LOCALE_QUERY_BYTES.
MalformedQuery
Percent decoding or UTF-8 decoding of the query failed.
DuplicateQueryOverride
The configured locale query parameter appeared more than once.
UnsupportedQueryLocale
The explicit query locale is not in the supported set.
HeaderTooLong
The combined Accept-Language values exceed MAX_ACCEPT_LANGUAGE_BYTES.
MalformedHeader
Accept-Language contains invalid bytes, ranges, parameters, or quality values.
Trait Implementations§
Source§impl Clone for RequestLocaleRejection
impl Clone for RequestLocaleRejection
impl Copy for RequestLocaleRejection
Source§impl Debug for RequestLocaleRejection
impl Debug for RequestLocaleRejection
impl Eq for RequestLocaleRejection
Source§impl IntoResponse for RequestLocaleRejection
impl IntoResponse for RequestLocaleRejection
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl PartialEq for RequestLocaleRejection
impl PartialEq for RequestLocaleRejection
impl StructuralPartialEq for RequestLocaleRejection
Auto Trait Implementations§
impl Freeze for RequestLocaleRejection
impl RefUnwindSafe for RequestLocaleRejection
impl Send for RequestLocaleRejection
impl Sync for RequestLocaleRejection
impl Unpin for RequestLocaleRejection
impl UnsafeUnpin for RequestLocaleRejection
impl UnwindSafe for RequestLocaleRejection
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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