Object/Class

zio

ZLayer

Related Docs: class ZLayer | package zio

Permalink

object ZLayer extends ZLayerCompanionVersionSpecific

Linear Supertypes
ZLayerCompanionVersionSpecific, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZLayer
  2. ZLayerCompanionVersionSpecific
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Debug extends AnyRef

    Permalink
  2. trait FunctionConstructor[In] extends AnyRef

    Permalink

    A FunctionConstructor[Input] knows how to construct a ZLayer value from a function of type Input.

    A FunctionConstructor[Input] knows how to construct a ZLayer value from a function of type Input. This allows the type of the ZLayer value constructed to depend on Input.

  3. implicit final class ScopedEnvironmentPartiallyApplied[R] extends AnyVal

    Permalink
  4. implicit final class ScopedPartiallyApplied[R] extends AnyVal

    Permalink
  5. implicit final class ZLayerInvariantOps[RIn, E, ROut] extends AnyVal

    Permalink
  6. implicit final class ZLayerProvideSomeOps[RIn, E, ROut] extends AnyVal

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Debug

    Permalink
  5. object FunctionConstructor

    Permalink
  6. def apply[RIn, E, ROut](zio: ⇒ ZIO[RIn, E, ROut])(implicit arg0: Tag[ROut], trace: Trace): ZLayer[RIn, E, ROut]

    Permalink

    Constructs a layer from an effectual resource.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def collectAll[R, E, A, Collection[+Element] <: Iterable[Element]](in: ⇒ Collection[ZLayer[R, E, A]])(implicit arg0: Tag[A], tag: Tag[Collection[A]], bf: zio.BuildFrom[Collection[ZLayer[R, E, A]], A, Collection[A]], trace: Trace): ZLayer[R, E, Collection[A]]

    Permalink

    Gathers up the ZLayer inside of the given collection, and combines them into a single ZLayer containing an equivalent collection of results.

  10. def debug(value: ⇒ Any)(implicit trace: Trace): ZLayer[Any, Nothing, Unit]

    Permalink

    Prints the specified message to the console for debugging purposes.

  11. final def die(t: ⇒ Throwable)(implicit trace: Trace): ZLayer[Any, Nothing, Nothing]

    Permalink

    Constructs a layer that dies with the specified throwable.

  12. val empty: ZLayer[Any, Nothing, Any]

    Permalink

    A layer that does not produce any services.

  13. def environment[A](implicit trace: Trace): ZLayer[A, Nothing, A]

    Permalink

    Constructs a layer that passes along the specified environment as an output.

  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def fail[E](e: ⇒ E)(implicit trace: Trace): Layer[E, Nothing]

    Permalink

    Constructs a layer that fails with the specified error.

  17. def failCause[E](cause: ⇒ Cause[E])(implicit trace: Trace): Layer[E, Nothing]

    Permalink

    Constructs a layer that fails with the specified cause.

  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def foreach[R, E, A, B, Collection[+Element] <: Iterable[Element]](in: ⇒ Collection[A])(f: (A) ⇒ ZLayer[R, E, B])(implicit arg0: Tag[B], tag: Tag[Collection[B]], bf: zio.BuildFrom[Collection[A], B, Collection[B]], trace: Trace): ZLayer[R, E, Collection[B]]

    Permalink

    Applies the function f to each element of the Collection[A] and returns the results in a new Collection[B].

  20. def fromFunction[In](in: In)(implicit constructor: FunctionConstructor[In], trace: Trace): Out

    Permalink

    Constructs a layer from the specified function.

  21. def fromZIO[R, E, A](zio: ⇒ ZIO[R, E, A])(implicit arg0: Tag[A], trace: Trace): ZLayer[R, E, A]

    Permalink

    Constructs a layer from the specified effect.

  22. def fromZIOEnvironment[R, E, A](zio: ⇒ ZIO[R, E, ZEnvironment[A]])(implicit trace: Trace): ZLayer[R, E, A]

    Permalink

    Constructs a layer from the specified effect, which must return one or more services.

  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def make[R]: MakePartiallyApplied[R]

    Permalink

    Automatically assembles a layer for the provided type.

    Automatically assembles a layer for the provided type.

    ZLayer.make[Car](carLayer, wheelsLayer, engineLayer)
    Definition Classes
    ZLayerCompanionVersionSpecific
  27. def makeSome[R0, R]: MakeSomePartiallyApplied[R0, R]

    Permalink

    Automatically constructs a layer for the provided type R, leaving a remainder R0.

    Automatically constructs a layer for the provided type R, leaving a remainder R0.

    val carLayer: ZLayer[Engine with Wheels, Nothing, Car] = ???
    val wheelsLayer: ZLayer[Any, Nothing, Wheels] = ???
    
    val layer = ZLayer.makeSome[Engine, Car](carLayer, wheelsLayer)
    Definition Classes
    ZLayerCompanionVersionSpecific
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def refailCause[E](cause: Cause[E])(implicit trace: Trace): Layer[E, Nothing]

    Permalink

    Constructs a layer that refails with the specified cause.

  32. def scoped[R]: ScopedPartiallyApplied[R]

    Permalink

    Constructs a layer from the specified scoped effect.

  33. def scopedEnvironment[R]: ScopedEnvironmentPartiallyApplied[R]

    Permalink

    Constructs a layer from the specified scoped effect, which must return one or more services.

  34. def service[A](implicit arg0: Tag[A], trace: Trace): ZLayer[A, Nothing, A]

    Permalink

    Constructs a layer that accesses and returns the specified service from the environment.

  35. def succeed[A](a: ⇒ A)(implicit arg0: Tag[A], trace: Trace): ULayer[A]

    Permalink

    Constructs a layer from the specified value.

  36. def succeedEnvironment[A](a: ⇒ ZEnvironment[A])(implicit trace: Trace): ULayer[A]

    Permalink

    Constructs a layer from the specified value, which must return one or more services.

  37. def suspend[RIn, E, ROut](layer: ⇒ ZLayer[RIn, E, ROut]): ZLayer[RIn, E, ROut]

    Permalink

    Lazily constructs a layer.

    Lazily constructs a layer. This is useful to avoid infinite recursion when creating layers that refer to themselves.

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ZLayerCompanionVersionSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped