Struct xitca_web::error::InvalidHeaderValue
source · pub struct InvalidHeaderValue(pub HeaderName);
Expand description
error type when named header is not associated with valid header value.
Tuple Fields§
§0: HeaderName
Trait Implementations§
source§impl Debug for InvalidHeaderValue
impl Debug for InvalidHeaderValue
source§impl Display for InvalidHeaderValue
impl Display for InvalidHeaderValue
source§impl Error for InvalidHeaderValue
impl Error for InvalidHeaderValue
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<C> From<InvalidHeaderValue> for Error<C>
impl<C> From<InvalidHeaderValue> for Error<C>
source§fn from(e: InvalidHeaderValue) -> Self
fn from(e: InvalidHeaderValue) -> Self
Converts to this type from the input type.
source§impl<'r, C, B> Service<WebContext<'r, C, B>> for InvalidHeaderValue
impl<'r, C, B> Service<WebContext<'r, C, B>> for InvalidHeaderValue
§type Response = Response<ResponseBody>
type Response = Response<ResponseBody>
The Ok part of output future.
§type Error = Infallible
type Error = Infallible
The Err part of output future.
async fn call( &self, ctx: WebContext<'r, C, B>, ) -> Result<Self::Response, Self::Error>
Auto Trait Implementations§
impl !Freeze for InvalidHeaderValue
impl RefUnwindSafe for InvalidHeaderValue
impl Send for InvalidHeaderValue
impl Sync for InvalidHeaderValue
impl Unpin for InvalidHeaderValue
impl UnwindSafe for InvalidHeaderValue
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, B> BorrowState<B> for T
impl<T, B> BorrowState<B> for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
source§fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
Enclose Self with given
T as Service<<Self as Service<_>>::Response>>
. In other word T
would take Self’s Service::Response
type as it’s generic argument of Service<_>
impl.source§fn enclosed_fn<T, Req>(self, func: T) -> Pipeline<Self, T, BuildEnclosedFn>
fn enclosed_fn<T, Req>(self, func: T) -> Pipeline<Self, T, BuildEnclosedFn>
Function version of Self::enclosed method.
source§fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, F, BuildMap>
fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, F, BuildMap>
Mutate
<<Self::Response as Service<Req>>::Future as Future>::Output
type with given
closure.