fn route(&self, req: &mut Request) -> ApiResult {
        for api in self.apis.iter() {
            if req.match_segs(api.name()) {
                return api.route(req)
            }
        }
        gen_api_not_found()
    }
/// The route function here will ask every sub-API to make an response in
/// binding order. The collection routing is short-circuiting, i.e., once a
/// sub-API responded, the response is returned and the following it won't
/// check the remaining unchecked sub-apis.
The route function here will ask every sub-API to make an response in
binding order. The collection routing is short-circuiting, i.e., once a
sub-API responded, the response is returned and the following it won't
check the remaining unchecked sub-apis.
The route function here will ask every sub - API to make an response in binding order . The collection routing is short - circuiting i . e . once a sub - API responded the response is returned and the following it won ' t check the remaining unchecked sub - apis .
fn route(&self, req: &mut Request) -> ApiResult {
        for api in self.apis.iter() {
            if req.match_segs(api.name()) {
                return api.route(req)
            }
        }
        gen_api_not_found()
    }
fn route ( & self , req : & mut Request ) -> ApiResult { for api in self . apis . iter ( ) { if req . match_segs ( api . name ( ) ) { return api . route ( req ) } } gen_api_not_found ( ) }
The route function here will ask every sub-API to make an response in
binding order.
The route function here will ask every sub - API to make an response in binding order .
&self
req
&mut Request
&self
req
&mut Request