pub enum HttpHandler {
Async(fn(&mut HttpRequest) -> Pin<Box<dyn Future<Output = HttpResponse> + Send + '_>>),
AsyncNoSend(fn(&mut HttpRequest) -> Pin<Box<dyn Future<Output = HttpResponse> + '_>>),
Sync(fn(&mut HttpRequest) -> HttpResponse),
}Variants§
Async(fn(&mut HttpRequest) -> Pin<Box<dyn Future<Output = HttpResponse> + Send + '_>>)
AsyncNoSend(fn(&mut HttpRequest) -> Pin<Box<dyn Future<Output = HttpResponse> + '_>>)
Sync(fn(&mut HttpRequest) -> HttpResponse)
Trait Implementations§
Source§impl Clone for HttpHandler
impl Clone for HttpHandler
Source§fn clone(&self) -> HttpHandler
fn clone(&self) -> HttpHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpHandler
Auto Trait Implementations§
impl Freeze for HttpHandler
impl RefUnwindSafe for HttpHandler
impl Send for HttpHandler
impl Sync for HttpHandler
impl Unpin for HttpHandler
impl UnsafeUnpin for HttpHandler
impl UnwindSafe for HttpHandler
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