The variants in the Result structure.
This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.
Constructs a Result whose value represents a failure.
Constructs a Result whose value represents a success.