Struct htsget_lambda::Router
source · pub struct Router<'a, H> { /* private fields */ }
Expand description
A Router is a struct which handles routing any htsget requests to the htsget search, using the config.
Implementations§
source§impl<'a, H: HtsGet + Send + Sync + 'static> Router<'a, H>
impl<'a, H: HtsGet + Send + Sync + 'static> Router<'a, H>
pub fn new(searcher: Arc<H>, config_service_info: &'a ServiceInfo) -> Self
sourcepub async fn route_request(&self, request: Request) -> Result<Response<Body>>
pub async fn route_request(&self, request: Request) -> Result<Response<Body>>
Routes the request to the relevant htsget search endpoint using the lambda request, returning a http response.
Auto Trait Implementations§
impl<'a, H> RefUnwindSafe for Router<'a, H>where H: RefUnwindSafe,
impl<'a, H> Send for Router<'a, H>where H: Send + Sync,
impl<'a, H> Sync for Router<'a, H>where H: Send + Sync,
impl<'a, H> Unpin for Router<'a, H>
impl<'a, H> UnwindSafe for Router<'a, H>where H: RefUnwindSafe,
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