The poem shows the use of imagery such as “It rains, and the wind is never weary”, “My thoughts still cling to the moldering Past” and “Behind the clouds is the sun still shining.” Metaphor: It is a figure of speech in which an implied comparison is made between the objects that are different
"my thoughts" are clinging, something a human would do to "the mouldering past". In other words, an object's actions are being described with human traits/characteristics.