While we wait for the sun to rise is a sentence fragment.
There is no ending that completes the sentence.
To finish, an example would be:
<em>While we wait for the sun to rise, we eat breakfast.
</em><em>
</em>
A Simile. This is because it is comparing the muck to a leech using the words "as if".