pub fn apply_timeout(router: Router, duration: Duration) -> Router
Applies a timeout layer and maps elapsed requests into uniform responses.