Generally they will breed a child of the same exact type, at least 95% of the time in my experience. However they can breed a hybrid of their elements.
When breeding two Chrome dragons (air/metal) repeatedly I found that once I got a Rust dragon (Metal+water)! This is because, apparently, on rare occasion an Air dragon breeds as a fire or water dragon instead of an air dragon.
Rare dragons are certainly less likely to be bred when they're an option. It's all a matter of chance, though there's been some unproven theories that the dragon you put on the left side of the breeding menu determines the order of elements of the egg. It doesn't seem to hold true.
Generally assume the breed will yield a random possible combination, and note that rare dragons are very rare, I'd say maybe less than a 10% chance. I don't think there's any formal numbers. From experience only Rare dragons have a different breeding chance, everything else, assume an even chance of all other possible results. If there is a difference, it's not large enough to fuss over.
Special Event dragons also tend to be "Rare" at approximately the same rate as the Sun/Moon/Rainbow dragons. Generally you'll want to stop everything and start trying to breed time-limited dragons immediately until you get one, or two if you want a breeding pair.
Note the Epic Breeding Island advertises that you have a higher chance of rares. It doesn't seem extremely significant; rare dragons are still rare on the breeding island. In fact I haven't noticed a perceptible difference, but if you're trying to breed for rares you might as well try the island first.
Also note that breeding two dragons always gives you that same dragon (best I can tell), so breeding two Rare Rainbow dragons has a 100% chance of giving a rainbow dragon.
Best Answer
You've got it backwards.
What type of dragon that winds up getting bred determines how long the two parents will be at it.
The only way to even slightly influence the outcome is by obtaining the Epic Breeding Island, which has a higher chance of breeding rare dragons according to its wiki entry.
See the Dragonvale Breeding Wikia page for more details than rightfully fit in this answer, and use the Breeding Sandbox to puzzle out how to maximize your chances to get the dragon you want.
ETA: Recently, an update increased the chance of level 15 and 20 dragons to breed rares, but as mentioned in this question people are still trying to determine how much. Statistics are a slow process. :)