Well it's resin (I think) but not a slug. I think it's weeping from a wattle because a possum has damaged the tree in order to make it weep sap which provides a food source. The sap then hardens into a resin blob - they often have an interesting shape and texture. :)