Struct xitca_web::error::ExtensionNotFound
source · pub struct ExtensionNotFound(/* private fields */);Expand description
error type for typed instance can’t be found from Extensions
Trait Implementations§
source§impl Debug for ExtensionNotFound
impl Debug for ExtensionNotFound
source§impl Display for ExtensionNotFound
impl Display for ExtensionNotFound
source§impl Error for ExtensionNotFound
impl Error for ExtensionNotFound
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<ExtensionNotFound> for Error<C>
impl<C> From<ExtensionNotFound> for Error<C>
source§fn from(e: ExtensionNotFound) -> Self
fn from(e: ExtensionNotFound) -> Self
Converts to this type from the input type.
source§impl<'r, C, B> Service<WebContext<'r, C, B>> for ExtensionNotFound
impl<'r, C, B> Service<WebContext<'r, C, B>> for ExtensionNotFound
§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 ExtensionNotFound
impl RefUnwindSafe for ExtensionNotFound
impl Send for ExtensionNotFound
impl Sync for ExtensionNotFound
impl Unpin for ExtensionNotFound
impl UnwindSafe for ExtensionNotFound
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> 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.