Function trillium_api::api
source · pub fn api<TryFromConnHandler, OutputHandler, Extracted>(
api_handler: TryFromConnHandler
) -> ApiHandler<TryFromConnHandler, OutputHandler, Extracted>where
TryFromConnHandler: for<'a> MutBorrowConn<'a, OutputHandler, Extracted>,
Extracted: TryFromConn,
OutputHandler: Handler,
Expand description
constructs a new [ApiTryFromConnHandler
] from the provided
async fn(&mut conn, TryFromConn) -> impl Handler
convenience function for [ApiTryFromConnHandler::new
]