pub struct FnHandler<F> { /* private fields */ }Expand description
A function handler that wraps an async function.
This is the primary handler type, wrapping async fn(HttpRequest) -> Result<HttpResponse, Error>.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for FnHandler<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnHandler<F>where
F: RefUnwindSafe,
impl<F> Send for FnHandler<F>where
F: Send,
impl<F> Sync for FnHandler<F>where
F: Sync,
impl<F> Unpin for FnHandler<F>where
F: Unpin,
impl<F> UnwindSafe for FnHandler<F>where
F: 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> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging