abstract class Capability[R <: Has[_], 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]
- Alphabetic
- By Inheritance
- Capability
- Base
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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]
- Annotations
- @silent( "is never used" )
-
def
apply(assertion: Assertion[I], result: Result[I, E, A])(implicit ev: =!=[I, Unit]): Expectation[R]
- Annotations
- @silent( "is never used" )
-
def
apply(assertion: Assertion[I])(implicit ev1: =!=[I, Unit], ev2: <:<[A, Unit]): Expectation[R]
- Annotations
- @silent( "is never used" )
-
def
apply()(implicit ev1: =:=[I, Unit], ev2: <:<[A, Unit]): Expectation[R]
- Annotations
- @silent( "is never used" )
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val errorTag: zio.LightTypeTag
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
id: UUID
- Definition Classes
- Base
- val inputTag: zio.LightTypeTag
- def isEqual[R0 <: Has[_], 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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()