ResourceState

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class Active[T](value: T) extends ResourceState[T]
case class SoftDeleted[T](value: T) extends ResourceState[T]

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def active[T](res: ResourceState[T]): Option[T]
def addFinalizer[T](t: T, finalizer: String)(implicit f: HasFinalizers[T]): Option[T]
def addFinalizers[T](t: T, finalizers: List[String])(implicit f: HasFinalizers[T]): Option[T]
def fold[IO[_], T, R](dfl: R, fn: T => IO[R])(t: ResourceState[T])(implicit io: Monad[IO]): IO[R]
def map[T, R](t: ResourceState[T], fn: T => R): ResourceState[R]
def of[T](value: T)(implicit sd: HasSoftDelete[T]): ResourceState[T]
def removeFinalizer[T](t: T, finalizer: String)(implicit f: HasFinalizers[T]): Option[T]
def softDeleted[T](res: ResourceState[T]): Option[T]