spice.http.ConnectionStatus.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spice-core_sjs1_3 Show documentation
Show all versions of spice-core_sjs1_3 Show documentation
Core functionality leveraged and shared by most other sub-projects of Spice.
package spice.http
sealed trait ConnectionStatus {
lazy val name: String = getClass.getSimpleName.replace("$", "")
override def toString: String = name
}
object ConnectionStatus {
case object Closed extends ConnectionStatus
case object Closing extends ConnectionStatus
case object Connecting extends ConnectionStatus
case object Open extends ConnectionStatus
}