England spinner Sophie Ecclestone claimed a 10-wicket haul during the one-off Test against Australia at Trent Bridge.