o

dynamics.http

DecodeResult

object DecodeResult

Helper objects to make creating DecodeResults easier.

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

Value Members

  1. def apply[F[_], A](fa: F[Either[DecodeFailure, A]]): DecodeResult[F, A]

    Create a DecodeResult directly from the effectful Either.

  2. def fail[F[_], A](implicit F: Applicative[F]): DecodeResult[F, A]

    Return a failure.

  3. def failure[F[_], A](e: DecodeFailure)(implicit F: Applicative[F]): DecodeResult[F, A]

    Lift an plain DecodeFailure to a DecodeResult.

  4. def failure[F[_], A](e: F[DecodeFailure])(implicit F: Functor[F]): DecodeResult[F, A]

    Lift an effectful DecodeFailure to a DecodeResult.

  5. def success[F[_], A](a: A)(implicit F: Applicative[F]): DecodeResult[F, A]

    Lift a pure A to a DecodeResult.

  6. def success[F[_], A](a: F[A])(implicit F: Functor[F]): DecodeResult[F, A]

    Lift an effectful A to a DecodeResult.