Made write_durability_t be an enum class.