Object/Class

zio

ZLayer

Related Docs: class ZLayer | package zio

Permalink

object ZLayer

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

Type Members

  1. type NoDeps[+E, +B <: Has[_]] = ZLayer[Any, E, B]

    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. def apply[RIn, E, ROut <: Has[_]](managed: ZManaged[RIn, E, ROut]): ZLayer[RIn, E, ROut]

    Permalink

    Constructs a layer from a managed resource.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fromAcquireRelease[R, E, A](acquire: ZIO[R, E, A])(release: (A) ⇒ URIO[R, Any])(implicit arg0: Tagged[A]): ZLayer[R, E, Has[A]]

    Permalink

    Constructs a layer from acquire and release actions.

    Constructs a layer from acquire and release actions. The acquire and release actions will be performed uninterruptibly.

  11. def fromAcquireReleaseMany[R, E, A <: Has[_]](acquire: ZIO[R, E, A])(release: (A) ⇒ URIO[R, Any]): ZLayer[R, E, A]

    Permalink

    Constructs a layer from acquire and release actions, which must return one or more services.

    Constructs a layer from acquire and release actions, which must return one or more services. The acquire and release actions will be performed uninterruptibly.

  12. def fromEffect[R, E, A](zio: ZIO[R, E, A])(implicit arg0: Tagged[A]): ZLayer[R, E, Has[A]]

    Permalink

    Constructs a layer from the specified effect.

  13. def fromEffectMany[R, E, A <: Has[_]](zio: ZIO[R, E, A]): ZLayer[R, E, A]

    Permalink

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

  14. def fromFunction[A, B](f: (A) ⇒ B)(implicit arg0: Tagged[B]): ZLayer[A, Nothing, Has[B]]

    Permalink

    Constructs a layer from the environment using the specified function.

  15. def fromFunctionM[A, E, B](f: (A) ⇒ IO[E, B])(implicit arg0: Tagged[B]): ZLayer[A, E, Has[B]]

    Permalink

    Constructs a layer from the environment using the specified effectful function.

  16. def fromFunctionManaged[A, E, B](f: (A) ⇒ Managed[E, B])(implicit arg0: Tagged[B]): ZLayer[A, E, Has[B]]

    Permalink

    Constructs a layer from the environment using the specified effectful resourceful function.

  17. def fromFunctionMany[A, B <: Has[_]](f: (A) ⇒ B): ZLayer[A, Nothing, B]

    Permalink

    Constructs a layer from the environment using the specified function, which must return one or more services.

  18. def fromFunctionManyM[A, E, B <: Has[_]](f: (A) ⇒ IO[E, B]): ZLayer[A, E, B]

    Permalink

    Constructs a layer from the environment using the specified effectful function, which must return one or more services.

  19. def fromFunctionManyManaged[A, E, B <: Has[_]](f: (A) ⇒ Managed[E, B]): ZLayer[A, E, B]

    Permalink

    Constructs a layer from the environment using the specified effectful resourceful function, which must return one or more services.

  20. def fromManaged[R, E, A](m: ZManaged[R, E, A])(implicit arg0: Tagged[A]): ZLayer[R, E, Has[A]]

    Permalink

    Constructs a layer from a managed resource.

  21. def fromManagedMany[R, E, A <: Has[_]](m: ZManaged[R, E, A]): ZLayer[R, E, A]

    Permalink

    Constructs a layer from a managed resource, which must return one or more services.

  22. def fromService[A, B](f: (A) ⇒ B)(implicit arg0: Tagged[A], arg1: Tagged[B]): ZLayer[Has[A], Nothing, Has[B]]

    Permalink

    Constructs a layer that purely depends on the specified service.

  23. def fromServiceM[A, R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A], arg1: Tagged[B]): ZLayer[R with Has[A], E, Has[B]]

    Permalink

    Constructs a layer that effectfully depends on the specified service.

  24. def fromServiceManaged[A, R, E, B](f: (A) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A], arg1: Tagged[B]): ZLayer[R with Has[A], E, Has[B]]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified service.

  25. def fromServiceMany[A, B <: Has[_]](f: (A) ⇒ B)(implicit arg0: Tagged[A]): ZLayer[Has[A], Nothing, B]

    Permalink

    Constructs a layer that purely depends on the specified service, which must return one or more services.

  26. def fromServiceManyM[A, R, E, B <: Has[_]](f: (A) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A]): ZLayer[R with Has[A], E, B]

    Permalink

    Constructs a layer that effectfully depends on the specified service, which must return one or more services.

  27. def fromServiceManyManaged[A, R, E, B <: Has[_]](f: (A) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A]): ZLayer[R with Has[A], E, B]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified service, which must return one or more services.

  28. def fromServices[A0, A1, A2, A3, A4, B](f: (A0, A1, A2, A3, A4) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[A4], arg5: Tagged[B]): ZLayer[Has[A0] with Has[A1] with Has[A2] with Has[A3] with Has[A4], Nothing, Has[B]]

    Permalink

    Constructs a layer that purely depends on the specified services.

  29. def fromServices[A0, A1, A2, A3, B](f: (A0, A1, A2, A3) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[B]): ZLayer[Has[A0] with Has[A1] with Has[A2] with Has[A3], Nothing, Has[B]]

    Permalink

    Constructs a layer that purely depends on the specified services.

  30. def fromServices[A0, A1, A2, B](f: (A0, A1, A2) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[B]): ZLayer[Has[A0] with Has[A1] with Has[A2], Nothing, Has[B]]

    Permalink

    Constructs a layer that purely depends on the specified services.

  31. def fromServices[A0, A1, B](f: (A0, A1) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[B]): ZLayer[Has[A0] with Has[A1], Nothing, Has[B]]

    Permalink

    Constructs a layer that purely depends on the specified services.

  32. def fromServicesM[A0, A1, A2, A3, A4, R, E, B](f: (A0, A1, A2, A3, A4) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[A4], arg5: Tagged[B]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3] with Has[A4], E, Has[B]]

    Permalink

    Constructs a layer that effectfully depends on the specified services.

  33. def fromServicesM[A0, A1, A2, A3, R, E, B](f: (A0, A1, A2, A3) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[B]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3], E, Has[B]]

    Permalink

    Constructs a layer that effectfully depends on the specified services.

  34. def fromServicesM[A0, A1, A2, R, E, B](f: (A0, A1, A2) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[B]): ZLayer[R with Has[A0] with Has[A1] with Has[A2], E, Has[B]]

    Permalink

    Constructs a layer that effectfully depends on the specified services.

  35. def fromServicesM[A0, A1, R, E, B](f: (A0, A1) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[B]): ZLayer[R with Has[A0] with Has[A1], E, Has[B]]

    Permalink

    Constructs a layer that effectfully depends on the specified services.

  36. def fromServicesManaged[A0, A1, A2, A3, A4, R, E, B](f: (A0, A1, A2, A3, A4) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[A4], arg5: Tagged[B]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3] with Has[A4], E, Has[B]]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services.

  37. def fromServicesManaged[A0, A1, A2, A3, R, E, B](f: (A0, A1, A2, A3) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[B]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3], E, Has[B]]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services.

  38. def fromServicesManaged[A0, A1, A2, R, E, B](f: (A0, A1, A2) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[B]): ZLayer[R with Has[A0] with Has[A1] with Has[A2], E, Has[B]]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services.

  39. def fromServicesManaged[A0, A1, R, E, B](f: (A0, A1) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[B]): ZLayer[R with Has[A0] with Has[A1], E, Has[B]]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services.

  40. def fromServicesMany[A0, A1, A2, A3, A4, B <: Has[_]](f: (A0, A1, A2, A3, A4) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[A4]): ZLayer[Has[A0] with Has[A1] with Has[A2] with Has[A3] with Has[A4], Nothing, B]

    Permalink

    Constructs a layer that purely depends on the specified services, which must return one or more services.

  41. def fromServicesMany[A0, A1, A2, A3, B <: Has[_]](f: (A0, A1, A2, A3) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3]): ZLayer[Has[A0] with Has[A1] with Has[A2] with Has[A3], Nothing, B]

    Permalink

    Constructs a layer that purely depends on the specified services, which must return one or more services.

  42. def fromServicesMany[A0, A1, A2, B <: Has[_]](f: (A0, A1, A2) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2]): ZLayer[Has[A0] with Has[A1] with Has[A2], Nothing, B]

    Permalink

    Constructs a layer that purely depends on the specified services, which must return one or more services.

  43. def fromServicesMany[A0, A1, B <: Has[_]](f: (A0, A1) ⇒ B)(implicit arg0: Tagged[A0], arg1: Tagged[A1]): ZLayer[Has[A0] with Has[A1], Nothing, B]

    Permalink

    Constructs a layer that purely depends on the specified services, which must return one or more services.

  44. def fromServicesManyM[A0, A1, A2, A3, A4, R, E, B <: Has[_]](f: (A0, A1, A2, A3, A4) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[A4]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3] with Has[A4], E, B]

    Permalink

    Constructs a layer that effectfully depends on the specified services, which must return one or more services.

  45. def fromServicesManyM[A0, A1, A2, A3, R, E, B <: Has[_]](f: (A0, A1, A2, A3) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3], E, B]

    Permalink

    Constructs a layer that effectfully depends on the specified services, which must return one or more services.

  46. def fromServicesManyM[A0, A1, A2, R, E, B <: Has[_]](f: (A0, A1, A2) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2]): ZLayer[R with Has[A0] with Has[A1] with Has[A2], E, B]

    Permalink

    Constructs a layer that effectfully depends on the specified services, which must return one or more services.

  47. def fromServicesManyM[A0, A1, R, E, B <: Has[_]](f: (A0, A1) ⇒ ZIO[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1]): ZLayer[R with Has[A0] with Has[A1], E, B]

    Permalink

    Constructs a layer that effectfully depends on the specified services, which must return one or more services.

  48. def fromServicesManyManaged[A0, A1, A2, A3, A4, R, E, B <: Has[_]](f: (A0, A1, A2, A3, A4) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3], arg4: Tagged[A4]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3] with Has[A4], E, B]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.

  49. def fromServicesManyManaged[A0, A1, A2, A3, R, E, B <: Has[_]](f: (A0, A1, A2, A3) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2], arg3: Tagged[A3]): ZLayer[R with Has[A0] with Has[A1] with Has[A2] with Has[A3], E, B]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.

  50. def fromServicesManyManaged[A0, A1, A2, R, E, B <: Has[_]](f: (A0, A1, A2) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1], arg2: Tagged[A2]): ZLayer[R with Has[A0] with Has[A1] with Has[A2], E, B]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.

  51. def fromServicesManyManaged[A0, A1, R, E, B <: Has[_]](f: (A0, A1) ⇒ ZManaged[R, E, B])(implicit arg0: Tagged[A0], arg1: Tagged[A1]): ZLayer[R with Has[A0] with Has[A1], E, B]

    Permalink

    Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  54. def identity[A <: Has[_]]: ZLayer[A, Nothing, A]

    Permalink

    An identity layer that passes along its inputs.

  55. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  56. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  59. def requires[A <: Has[_]]: ZLayer[A, Nothing, A]

    Permalink

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

  60. def service[A]: ZLayer[Has[A], Nothing, Has[A]]

    Permalink

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

  61. def succeed[A](a: ⇒ A)(implicit arg0: Tagged[A]): NoDeps[Nothing, Has[A]]

    Permalink

    Constructs a layer from the specified value.

  62. def succeedMany[A <: Has[_]](a: ⇒ A): NoDeps[Nothing, A]

    Permalink

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped