Dickinson uses the literary device Metaphor in the phrase “setting sun”.
Explanation:
Metaphor is the literary device in which the comparison is made between two things which are very different from each other. They differ in almost every aspect but they possess only one similarity between them. The phrase "setting sun" is a metaphor for old age. The setting of the sun symbolizes the setting of life.