spice.http.ConnectionStatus.scala Maven / Gradle / Ivy
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
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy