Throwing dog treats at dogs coming at you full tilt? That's supposed to stop an attack? Yeah, I know, the intent is to get friendly with the dogs, but you need the opportunity first, and with the behavior described before the dogs crossed the fence, how and when are you going to make friends with them. Dog treats wouldn't have worked.
The owners can be just as dangerous as the dogs. Several years ago I had a forest consulting job on private property. The client's neighbor had a rottweiler that thought he owned the neighborhood. On the last day of the job I was near the property line, on the client's property side when the dog appeared about 8 feet from me, hair standing on it's neck and looking very aggressive. I pulled out my increment borer (like a heavy 12" metal pipe that holds a hollow bit used for boring into trees to check the rings), the only weapon I had other than a 2" pocket knife. The owners turned out to be about 25 feet away, on their property and they started yelling at me to not hurt a hair on their dog, saying if I hurt their dog they would hunt me down and kill me. After a few minutes standoff, they called off their dog. A woman who worked for my wife knew the idiots and said they were crazy enough to make their threat good. The sheriff had a chat with them.
I realize several on this forum have aggressive breeds such as dobermans, but I see no reason why people own breeds known for their aggressiveness. To show they are macho thru their dogs? There are plenty of good breeds out there that are obedient, protective and good companions and are less likely to kill someone. In our area, we hear about a pit bull killing someone, often a kid, about 4 or 5 times a year. And if you check the listings for available dogs at the humane society, more than half the dogs are pit bulls.
Check your homeowner's insurance. Many policies don't insure you for harm done by certain breeds.