Packages

object Default extends DefaultInstances0

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

Type Members

  1. type WithContext[R0, E0, A] = Default[A] { ... /* 2 definitions in type refinement */ }
  2. implicit final class ZLayerDefaultInvariantOps[R, E, A] extends AnyVal

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[A](implicit ev: Default[A]): WithContext[R, E, A]

    Summons the implicit default for the specified type.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. implicit def defaultPromiseNothing[A](implicit arg0: Tag[A], trace: Trace): WithContext[Any, Nothing, Promise[Nothing, A]]
    Definition Classes
    DefaultInstances0
  8. implicit def deriveDefaultConfig[A](implicit arg0: Tag[A], ev: Config[A], trace: Trace): WithContext[Any, Error, A]
  9. implicit def deriveDefaultHub[A](implicit arg0: Tag[A], trace: Trace): WithContext[Any, Nothing, Hub[A]]
  10. implicit def deriveDefaultPromise[E, A](implicit arg0: Tag[E], arg1: Tag[A], trace: Trace): WithContext[Any, Nothing, Promise[E, A]]
  11. implicit def deriveDefaultQueue[A](implicit arg0: Tag[A], trace: Trace): WithContext[Any, Nothing, Queue[A]]
  12. implicit def deriveDefaultRef[A](implicit arg0: Tag[A], ev: Default[A], trace: Trace): WithContext[R, E, Ref[A]]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def fromLayer[R0, E0, A](zlayer: => ZLayer[R0, E0, A])(implicit arg0: Tag[A], trace: Trace): WithContext[R0, E0, A]

    Uses the provided layer as the default layer.

  16. def fromZIO[R, E, A](zio: => ZIO[R, E, A])(implicit arg0: Tag[A], trace: Trace): WithContext[R, E, A]

    Constructs a default layer using the provided ZIO value.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def service[A](implicit arg0: Tag[A], trace: Trace): WithContext[A, Nothing, A]

    Makes a default value that requires the specified service from the environment.

    Makes a default value that requires the specified service from the environment.

    Used to discard a predefined Default instance for ZLayer.derive.

    Example:
    1. class Wheels(number: Int)
      object Wheels {
        implicit val defaultWheels: ZLayer.Default.WithContext[Any, Nothing, Wheels] =
          ZLayer.Default.succeed(new Wheels(4))
      }
      class Car(wheels: Wheels)
      
      val carLayer1: ULayer[Car] = ZLayer.derive // wheels.number == 4
      val carLayer2: URLayer[Wheels, Car] = locally {
        // The default instance is discarded
        implicit val newWheels: ZLayer.Default.WithContext[Wheels, Nothing, Wheels] =
            ZLayer.Default.service[Wheels]
      
        ZLayer.derive[Car]
      }
  24. def succeed[A](a: => A)(implicit arg0: Tag[A], trace: Trace): WithContext[Any, Nothing, A]

    Constructs a default layer using the provided value.

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from DefaultInstances0

Inherited from AnyRef

Inherited from Any

Ungrouped