enum Wasmer::Wasi::Version
Overview
Represents the possible WASI versions.
Defined in:
wasmer/wasi.crEnum Members
-
Latest =
0
-
Latest version. It's a “floating” version, i.e. it's an alias to the latest version. Using this version is a way to ensure that modules will run only if they come with the latest WASI version (in case of security issues for instance), by just updating the runtime.
-
Snapshot0 =
1
-
Represents the wasi unstable version
-
Snapshot1 =
2
-
Represents the wasi snapshot preview1 version
-
Invalid =
-1
-
Represents an invalid version
Instance Method Summary
- #invalid?
- #latest?
- #snapshot0?
- #snapshot1?
-
#to_s(io : IO) : Nil
Appends a
String
representation of this enum member to the given io.