object ZLayer
- Alphabetic
- By Inheritance
- ZLayer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[RIn, E, ROut <: Has[_]](managed: ZManaged[RIn, E, ROut]): ZLayer[RIn, E, ROut]
Constructs a layer from a managed resource.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromAcquireRelease[R, E, A](acquire: ZIO[R, E, A])(release: (A) => URIO[R, Any])(implicit arg0: Tagged[A]): ZLayer[R, E, Has[A]]
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.
- def fromAcquireReleaseMany[R, E, A <: Has[_]](acquire: ZIO[R, E, A])(release: (A) => URIO[R, Any]): ZLayer[R, E, A]
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.
- def fromEffect[R, E, A](zio: ZIO[R, E, A])(implicit arg0: Tagged[A]): ZLayer[R, E, Has[A]]
Constructs a layer from the specified effect.
- def fromEffectMany[R, E, A <: Has[_]](zio: ZIO[R, E, A]): ZLayer[R, E, A]
Constructs a layer from the specified effect, which must return one or more services.
- def fromFunction[A, B](f: (A) => B)(implicit arg0: Tagged[B]): ZLayer[A, Nothing, Has[B]]
Constructs a layer from the environment using the specified function.
- def fromFunctionM[A, E, B](f: (A) => IO[E, B])(implicit arg0: Tagged[B]): ZLayer[A, E, Has[B]]
Constructs a layer from the environment using the specified effectful function.
- def fromFunctionManaged[A, E, B](f: (A) => Managed[E, B])(implicit arg0: Tagged[B]): ZLayer[A, E, Has[B]]
Constructs a layer from the environment using the specified effectful resourceful function.
- def fromFunctionMany[A, B <: Has[_]](f: (A) => B): ZLayer[A, Nothing, B]
Constructs a layer from the environment using the specified function, which must return one or more services.
- def fromFunctionManyM[A, E, B <: Has[_]](f: (A) => IO[E, B]): ZLayer[A, E, B]
Constructs a layer from the environment using the specified effectful function, which must return one or more services.
- def fromFunctionManyManaged[A, E, B <: Has[_]](f: (A) => Managed[E, B]): ZLayer[A, E, B]
Constructs a layer from the environment using the specified effectful resourceful function, which must return one or more services.
- def fromManaged[R, E, A](m: ZManaged[R, E, A])(implicit arg0: Tagged[A]): ZLayer[R, E, Has[A]]
Constructs a layer from a managed resource.
- def fromManagedMany[R, E, A <: Has[_]](m: ZManaged[R, E, A]): ZLayer[R, E, A]
Constructs a layer from a managed resource, which must return one or more services.
- def fromService[A, B](f: (A) => B)(implicit arg0: Tagged[A], arg1: Tagged[B]): ZLayer[Has[A], Nothing, Has[B]]
Constructs a layer that purely depends on the specified service.
- 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]]
Constructs a layer that effectfully depends on the specified service.
- 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]]
Constructs a layer that resourcefully and effectfully depends on the specified service.
- def fromServiceMany[A, B <: Has[_]](f: (A) => B)(implicit arg0: Tagged[A]): ZLayer[Has[A], Nothing, B]
Constructs a layer that purely depends on the specified service, which must return one or more services.
- def fromServiceManyM[A, R, E, B <: Has[_]](f: (A) => ZIO[R, E, B])(implicit arg0: Tagged[A]): ZLayer[R with Has[A], E, B]
Constructs a layer that effectfully depends on the specified service, which must return one or more services.
- def fromServiceManyManaged[A, R, E, B <: Has[_]](f: (A) => ZManaged[R, E, B])(implicit arg0: Tagged[A]): ZLayer[R with Has[A], E, B]
Constructs a layer that resourcefully and effectfully depends on the specified service, which must return one or more services.
- 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]]
Constructs a layer that purely depends on the specified services.
- 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]]
Constructs a layer that purely depends on the specified services.
- 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]]
Constructs a layer that purely depends on the specified services.
- 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]]
Constructs a layer that purely depends on the specified services.
- 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]]
Constructs a layer that effectfully depends on the specified services.
- 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]]
Constructs a layer that effectfully depends on the specified services.
- 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]]
Constructs a layer that effectfully depends on the specified services.
- 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]]
Constructs a layer that effectfully depends on the specified services.
- 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]]
Constructs a layer that resourcefully and effectfully depends on the specified services.
- 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]]
Constructs a layer that resourcefully and effectfully depends on the specified services.
- 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]]
Constructs a layer that resourcefully and effectfully depends on the specified services.
- 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]]
Constructs a layer that resourcefully and effectfully depends on the specified services.
- 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]
Constructs a layer that purely depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that purely depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that purely depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that purely depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.
- 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]
Constructs a layer that resourcefully and effectfully depends on the specified services, which must return one or more services.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def identity[A <: Has[_]]: ZLayer[A, Nothing, A]
An identity layer that passes along its inputs.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def requires[A <: Has[_]]: ZLayer[A, Nothing, A]
Constructs a layer that passes along the specified environment as an output.
- def service[A]: ZLayer[Has[A], Nothing, Has[A]]
Constructs a layer that accesses and returns the specified service from the environment.
- def succeed[A](a: => A)(implicit arg0: Tagged[A]): NoDeps[Nothing, Has[A]]
Constructs a layer from the specified value.
- def succeedMany[A <: Has[_]](a: => A): NoDeps[Nothing, A]
Constructs a layer from the specified value, which must return one or more services.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()