If iPadOS is anything to go by, I’d say not much at all.I wonder how much API access apps have to the ethernet interface. A well-featured app could turn an iPhone into a pretty nice network diagnostic device.
Apple may have determined to never have their iPhone be a Swiss knife of computer unlike Linux or windows ones.