ResourceState

foperator.ResourceState
See theResourceState companion trait
object ResourceState

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ResourceState[T]
class Object
trait Matchable
class Any
Show all
case class SoftDeleted[T](value: T) extends ResourceState[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ResourceState[T]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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]