async fn process_federation_outcome<F>( services: &Services, sender_user: Option<&UserId>, allowed_signatures: &F, outcome: Outcome<Response>, ) -> Outcome<Keys>where F: Fn(&UserId) -> bool + Send + Sync,