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. implicit final class ScopedEnvironmentPartiallyApplied[R] extends AnyVal

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

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

    Permalink
  5. 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. def apply[RIn, E, ROut](zio: ZIO[RIn, E, ROut])(implicit arg0: Tag[ROut], trace: ZTraceElement): ZLayer[RIn, E, ROut]

    Permalink

    Constructs a layer from an effectual resource.

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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: ZTraceElement): 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.

  9. final def die(t: Throwable)(implicit trace: ZTraceElement): ZLayer[Any, Nothing, Nothing]

    Permalink

    Constructs a layer that dies with the specified throwable.

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

    Permalink

    A layer that does not produce any services.

  11. def environment[A](implicit trace: ZTraceElement): ZLayer[A, Nothing, A]

    Permalink

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

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

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

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

    Permalink

    Constructs a layer that fails with the specified error.

  15. def failCause[E](cause: Cause[E])(implicit trace: ZTraceElement): Layer[E, Nothing]

    Permalink

    Constructs a layer that fails with the specified cause.

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. 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: ZTraceElement): 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].

  18. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) ⇒ W)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], arg17: Tag[R], arg18: Tag[S], arg19: Tag[T], arg20: Tag[U], arg21: Tag[V], arg22: Tag[W], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P with Q with R with S with T with U with V, Nothing, W]

    Permalink
  19. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U) ⇒ V)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], arg17: Tag[R], arg18: Tag[S], arg19: Tag[T], arg20: Tag[U], arg21: Tag[V], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P with Q with R with S with T with U, Nothing, V]

    Permalink
  20. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) ⇒ U)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], arg17: Tag[R], arg18: Tag[S], arg19: Tag[T], arg20: Tag[U], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P with Q with R with S with T, Nothing, U]

    Permalink
  21. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S) ⇒ T)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], arg17: Tag[R], arg18: Tag[S], arg19: Tag[T], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P with Q with R with S, Nothing, T]

    Permalink
  22. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R) ⇒ S)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], arg17: Tag[R], arg18: Tag[S], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P with Q with R, Nothing, S]

    Permalink
  23. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q) ⇒ R)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], arg17: Tag[R], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P with Q, Nothing, R]

    Permalink
  24. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) ⇒ Q)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], arg16: Tag[Q], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O with P, Nothing, Q]

    Permalink
  25. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) ⇒ P)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], arg15: Tag[P], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N with O, Nothing, P]

    Permalink
  26. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O](f: (A, B, C, D, E, F, G, H, I, J, K, L, M, N) ⇒ O)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], arg14: Tag[O], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M with N, Nothing, O]

    Permalink
  27. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M, N](f: (A, B, C, D, E, F, G, H, I, J, K, L, M) ⇒ N)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], arg13: Tag[N], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L with M, Nothing, N]

    Permalink
  28. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L, M](f: (A, B, C, D, E, F, G, H, I, J, K, L) ⇒ M)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], arg12: Tag[M], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K with L, Nothing, M]

    Permalink
  29. def fromFunction[A, B, C, D, E, F, G, H, I, J, K, L](f: (A, B, C, D, E, F, G, H, I, J, K) ⇒ L)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], arg11: Tag[L], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J with K, Nothing, L]

    Permalink
  30. def fromFunction[A, B, C, D, E, F, G, H, I, J, K](f: (A, B, C, D, E, F, G, H, I, J) ⇒ K)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], arg10: Tag[K], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I with J, Nothing, K]

    Permalink
  31. def fromFunction[A, B, C, D, E, F, G, H, I, J](f: (A, B, C, D, E, F, G, H, I) ⇒ J)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], arg9: Tag[J], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H with I, Nothing, J]

    Permalink
  32. def fromFunction[A, B, C, D, E, F, G, H, I](f: (A, B, C, D, E, F, G, H) ⇒ I)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], arg8: Tag[I], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G with H, Nothing, I]

    Permalink
  33. def fromFunction[A, B, C, D, E, F, G, H](f: (A, B, C, D, E, F, G) ⇒ H)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], arg7: Tag[H], trace: ZTraceElement): ZLayer[A with B with C with D with E with F with G, Nothing, H]

    Permalink
  34. def fromFunction[A, B, C, D, E, F, G](f: (A, B, C, D, E, F) ⇒ G)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], arg6: Tag[G], trace: ZTraceElement): ZLayer[A with B with C with D with E with F, Nothing, G]

    Permalink
  35. def fromFunction[A, B, C, D, E, F](f: (A, B, C, D, E) ⇒ F)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], arg5: Tag[F], trace: ZTraceElement): ZLayer[A with B with C with D with E, Nothing, F]

    Permalink
  36. def fromFunction[A, B, C, D, E](f: (A, B, C, D) ⇒ E)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], arg4: Tag[E], trace: ZTraceElement): ZLayer[A with B with C with D, Nothing, E]

    Permalink
  37. def fromFunction[A, B, C, D](f: (A, B, C) ⇒ D)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], trace: ZTraceElement): ZLayer[A with B with C, Nothing, D]

    Permalink
  38. def fromFunction[A, B, C](f: (A, B) ⇒ C)(implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], trace: ZTraceElement): ZLayer[A with B, Nothing, C]

    Permalink
  39. def fromFunction[A, B](f: (A) ⇒ B)(implicit arg0: Tag[A], arg1: Tag[B], trace: ZTraceElement): ZLayer[A, Nothing, B]

    Permalink

    Constructs a layer using the specified function.

  40. def fromZIO[R, E, A](zio: ZIO[R, E, A])(implicit arg0: Tag[A], trace: ZTraceElement): ZLayer[R, E, A]

    Permalink

    Constructs a layer from the specified effect.

  41. def fromZIOEnvironment[R, E, A](zio: ZIO[R, E, ZEnvironment[A]])(implicit trace: ZTraceElement): ZLayer[R, E, A]

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    Any
  45. 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
  46. 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
  47. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  50. val scope: ZLayer[Any, Nothing, Closeable]

    Permalink

    A layer that constructs a scope and closes it when the workflow the layer is provided to completes execution, whether by success, failure, or interruption.

    A layer that constructs a scope and closes it when the workflow the layer is provided to completes execution, whether by success, failure, or interruption. This can be used to close a scope when providing a layer to a workflow.

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

    Permalink

    Constructs a layer from the specified scoped effect.

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

    Permalink

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

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

    Permalink

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

  54. def succeed[A](a: A)(implicit arg0: Tag[A], trace: ZTraceElement): ULayer[A]

    Permalink

    Constructs a layer from the specified value.

  55. def succeedEnvironment[A](a: ZEnvironment[A])(implicit trace: ZTraceElement): ULayer[A]

    Permalink

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

  56. 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.

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

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

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

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

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

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

Inherited from ZLayerCompanionVersionSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped