pub type Effect(a) {
Done(a)
Abort(Snag)
Follow(uri: String, resume: fn(Result(Uri, Nil)) -> Effect(a))
Fetch(
request: Request(BitArray),
resume: fn(Result(Response(BitArray), FetchError)) ->
Effect(a),
)
Log(message: String, fn(Result(Nil, Nil)) -> Effect(a))
Zip(
files: List(#(String, BitArray)),
resume: fn(Result(BitArray, Nil)) -> Effect(a),
)
}
Constructors
-
-
-
Follow(uri: String, resume: fn(Result(Uri, Nil)) -> Effect(a))
-
Fetch(
request: Request(BitArray),
resume: fn(Result(Response(BitArray), FetchError)) -> Effect(a),
)
-
Log(message: String, fn(Result(Nil, Nil)) -> Effect(a))
-
Zip(
files: List(#(String, BitArray)),
resume: fn(Result(BitArray, Nil)) -> Effect(a),
)