pub struct HandlerService<H, Args> { /* private fields */ }Expand description
Wraps a handler function as a Service.
Implementations§
Source§impl<H, Args> HandlerService<H, Args>
impl<H, Args> HandlerService<H, Args>
Trait Implementations§
Source§impl<H: Clone, Args: Clone> Clone for HandlerService<H, Args>
impl<H: Clone, Args: Clone> Clone for HandlerService<H, Args>
Source§fn clone(&self) -> HandlerService<H, Args>
fn clone(&self) -> HandlerService<H, Args>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H, Fut> Service<HttpRequest> for HandlerService<H, ()>
impl<H, Fut> Service<HttpRequest> for HandlerService<H, ()>
Source§impl<H, Fut> Service<HttpRequest> for HandlerService<H, (HttpRequest,)>where
H: Fn(HttpRequest) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<HttpResponse, Error>> + Send + 'static,
impl<H, Fut> Service<HttpRequest> for HandlerService<H, (HttpRequest,)>where
H: Fn(HttpRequest) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<HttpResponse, Error>> + Send + 'static,
Auto Trait Implementations§
impl<H, Args> Freeze for HandlerService<H, Args>where
H: Freeze,
impl<H, Args> RefUnwindSafe for HandlerService<H, Args>where
H: RefUnwindSafe,
Args: RefUnwindSafe,
impl<H, Args> Send for HandlerService<H, Args>
impl<H, Args> Sync for HandlerService<H, Args>
impl<H, Args> Unpin for HandlerService<H, Args>
impl<H, Args> UnwindSafe for HandlerService<H, Args>where
H: UnwindSafe,
Args: 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