pub type Effect(a) {
Done(a)
Abort(Snag)
Bundle(
module: String,
function: String,
resume: fn(Result(String, String)) -> Effect(a),
)
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
-
-
-
Bundle(
module: String,
function: String,
resume: fn(Result(String, String)) -> Effect(a),
)
-
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),
)