async fn process_federation_response<F>( services: &Services, sender_user: Option<&UserId>, allowed_signatures: &F, response: Response, ) -> Keyswhere F: Fn(&UserId) -> bool + Send + Sync,