A simile will always use either the word "like" or "as" to create a comparison. It's important not to mistake the statement for a metaphor, which is a comparison that typically uses words such as "is" to connect the two topics or objects.
In "An Occurrence at Owl Creek Bridge", the meaning that is conveyed by the words "then all is darkness and silence!" is that Farquhar has been hanged.