pub fn get_default_interface() -> Result<Interface, String>Expand description
Returns the interface currently used for the system’s default route.
This function is available when the gateway feature is enabled.
Returns an error when no default route can be determined or when the local IP address cannot be resolved on the current platform.