pub struct RequestHandlerFlag {
pub method: HttpMethod,
pub path: &'static str,
pub handler: fn(HttpRequest, SocketAddr, &mut WebsocketContext) -> Pin<Box<dyn Future<Output = HttpResponse> + Send + '_>>,
pub doc: RequestHandlerFlagDoc,
}Fields§
§method: HttpMethod§path: &'static str§handler: fn(HttpRequest, SocketAddr, &mut WebsocketContext) -> Pin<Box<dyn Future<Output = HttpResponse> + Send + '_>>§doc: RequestHandlerFlagDocImplementations§
Source§impl RequestHandlerFlag
impl RequestHandlerFlag
pub const fn new( method: HttpMethod, path: &'static str, handler: fn(HttpRequest, SocketAddr, &mut WebsocketContext) -> Pin<Box<dyn Future<Output = HttpResponse> + Send + '_>>, doc: RequestHandlerFlagDoc, ) -> Self
Trait Implementations§
impl Collect for RequestHandlerFlag
Auto Trait Implementations§
impl Freeze for RequestHandlerFlag
impl RefUnwindSafe for RequestHandlerFlag
impl Send for RequestHandlerFlag
impl Sync for RequestHandlerFlag
impl Unpin for RequestHandlerFlag
impl UnwindSafe for RequestHandlerFlag
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