abstract class Capability[R, I, E, A] extends Base[R]
A Capability[R, I, E, A] represents a capability of environment R that takes an input I and returns an effect
that may fail with an error E or produce a single A.
To represent polymorphic capabilities you must use one of lazy Capability.Poly types which allow you to delay the
declaration of some types to call site.
To construct capability tags you should start by creating a Mock[R] and extend publicly available Effect,
Method, Sink or Stream type members.
- Attributes
- protected
- Self Type
- Capability[R, I, E, A]
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Capability
- Base
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Capability(mock: Mock[R])(implicit arg0: zio.EnvironmentTag[R], arg1: zio.EnvironmentTag[I], arg2: zio.EnvironmentTag[E], arg3: zio.EnvironmentTag[A])
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(returns: Result[I, E, A])(implicit ev: <:<[I, Unit]): Expectation[R]
- def apply(assertion: Assertion[I], result: Result[I, E, A])(implicit ev: =!=[I, Unit]): Expectation[R]
- def apply(assertion: Assertion[I])(implicit ev1: =!=[I, Unit], ev2: <:<[A, Unit]): Expectation[R]
- def apply()(implicit ev1: =:=[I, Unit], ev2: <:<[A, Unit]): Expectation[R]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val errorTag: zio.LightTypeTag
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
val
id: UUID
- Definition Classes
- Base
- val inputTag: zio.LightTypeTag
- def isEqual[R0, I0, E0, A0](that: Capability[R0, I0, E0, A0]): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
mock: Mock[R]
- Definition Classes
- Capability → Base
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val outputTag: zio.LightTypeTag
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
toString: String
Render method fully qualified name.
Render method fully qualified name.
- Definition Classes
- Base → AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )